Avoid the default designer for your IComponent-based classes: how to get the code view always!
Note: this entry has moved.
How many times you create a WebService
,
an Installer
, or more
generally, any class that directly or indirectly implements IComponent
,
and wish it doesn't open the default ComponentDesigner
?
The simple way to achieve it is adding the following attribute to your class declaration:
[System.ComponentModel.DesignerCategory("Code")]
public class YouClass : YourComponentBasedClass
DesignerCategoryAttribute
.