3

There are dozens of user control in our project. All these controls load into the Toolbox. I think this slows down the system when we work with the designer. Is this true? If so, then how to remove these controls from the Toolbox?

Micha Wiedenmann
  • 19,979
  • 21
  • 92
  • 137
Kashif
  • 14,071
  • 18
  • 66
  • 98
  • Found answers here http://stackoverflow.com/questions/1534150/auto-add-to-toolbox-of-custom-controls-in-visual-studio http://stackoverflow.com/questions/288047/user-controls-not-showing-up-in-the-toolbox – Kashif Dec 12 '09 at 12:05

3 Answers3

14

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.
  • 141
  • 1
  • 3
6

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
  • 6,604
  • 8
  • 56
  • 61
2

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
  • 3,050
  • 2
  • 23
  • 34
  • Thanks for your answer. I have found solution here http://stackoverflow.com/questions/1534150/auto-add-to-toolbox-of-custom-controls-in-visual-studio http://stackoverflow.com/questions/288047/user-controls-not-showing-up-in-the-toolbox – Kashif Dec 12 '09 at 12:04