Deactivate Automatic Loading of Controls in the Toolbox

If like me you own Visual Studio solutions with projects containing several Components (from 30 to 200), the Visual Studio Feature that automatically adds the Components as Tools in the toolbox every time you rebuild or open the solution, and every time you add or edit a new class, can result annoying, first because during this operation there aren’t hourglass cursors so it looks like Visual Studio is Hanged, second because the eventuality to be in the need to put all the controls on a form dragging them from the Toolbox is usually very rare. Except Perhaps to do some tests, anyway I think you are grown enough to be able to write a line of code to declare the component as member variable.

To disable the Automatic loading of the Controls you have to modify the Visual Studio Options this way:

Tools>Options>Windows Forms Designer> Toolbox> AutoToolboxPopulate = false.

Of course if instead you need this feature and it is not enabled, look at this option and change it to true.

I remember you that the classes this option consider are those derived from Control and Component.

Tags:

Print | posted on domenica 27 dicembre 2009 21.24

Feedback

No comments posted yet.

Your comment:





 
Please add 7 and 3 and type the answer here:

Copyright © Sabrina C.

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski