You can prevent the UserControl class to appear in the Visual Studio toolbox by adding fallowing attribute to it
[System.ComponentModel.ToolboxItem(false)]
Remember that this attribute is inheritable ,so derived UserControls must place have a System.ComponentModel.ToolboxItem(false) attribute if they want to be available on the Visual Studio toolbox .
No comments:
Post a Comment