The blog has moved to a new address. The blog is now located at http://devintelligence.com

Thursday, June 01, 2006

How to prevent the UserControl class to appear in the Visual Studio toolbox

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 .

Technorati : , , , ,
Ice Rocket : , , , ,

No comments: