Cook Computing

System.ComponentModel.DesignerCategory Attribute

October 30, 2004 Written by Charles Cook

The MS.COM Operations Tools Team WebLog has a useful tip if you working with component classes in .NET:

For those of you who like certain control classes to open in the code view (instead of the designer view) by default. You can use the following attribute on your class so when you double click on it you get the code view.

[System.ComponentModel.DesignerCategory("Code")]

I've now added this attribute to the XML-RPC.NET class XmlRpcClientProtocol which derives from System.ComponentModel.Component.