views:

265

answers:

3

There are dozens of user control in our project. All these controls loads in Toolbox. I think this slows down the system when we work in designer. Is it true? if so the how to remove these controls from tollbox?

Thanks.

+1  A: 

You can either delete the tab they are all in by right clicking and "Delete Tab".

Or just right click on the item itself and "Delete"

Ive persoanlly never noticed a slow down and ive all the Telerik ASP.NET set and quite a few custom ones in certain projects.

Jammin
Thanks for your answer. I have found solution herehttp://stackoverflow.com/questions/1534150/auto-add-to-toolbox-of-custom-controls-in-visual-studiohttp://stackoverflow.com/questions/288047/user-controls-not-showing-up-in-the-toolbox
Muhammad Kashif Nadeem
+1  A: 

If you want to prevent certain usercontrols in your project from being auto-added to the toolbox, then you can add the [System.ComponentModel.ToolboxItem(false)] attribute to your usercontrol class (This syntax assumes you're using C#).

RW
I did not know about that. Thank you for this.
Muhammad Kashif Nadeem
A: 

This will definitely slow down VS if there are a lot of projects all containing user controls.

Answer from linked questions:

Check this setting:

Tools > Options > Windows Forms Designer > General : AutoToolboxPopulate

It should be set to FALSE.

Aaron Hoffman