How to stop VS to load user controls into toolbox?
-
Hi guys, There're many user controls in my current project,and VS always initializes and loads these controls into toolbox,sometime it costs me 20 minutes to finish this,and in this 20 minutes VS is no response and I can do nothing. So I'm curious to know if there's a way to stop VS to do this. Anything you can help it would be appreciated!
-
Hi guys, There're many user controls in my current project,and VS always initializes and loads these controls into toolbox,sometime it costs me 20 minutes to finish this,and in this 20 minutes VS is no response and I can do nothing. So I'm curious to know if there's a way to stop VS to do this. Anything you can help it would be appreciated!
Hi, I haven't tried this, but there is a property under menu Tools/Options/WindowsFormsDesigner/AutoToolboxPopulate; you may have to check "Show all settings" first. BTW: if your UserControls take that long, maybe you should limit what code they execute inside the Designer by qualifying slow code with an
if (!DesignMode) ...
. Example: there probably is no need to perform database accesses when loading a Form inside the Designer. :)Luc Pattyn [Forum Guidelines] [My Articles]
Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in
-
Hi, I haven't tried this, but there is a property under menu Tools/Options/WindowsFormsDesigner/AutoToolboxPopulate; you may have to check "Show all settings" first. BTW: if your UserControls take that long, maybe you should limit what code they execute inside the Designer by qualifying slow code with an
if (!DesignMode) ...
. Example: there probably is no need to perform database accesses when loading a Form inside the Designer. :)Luc Pattyn [Forum Guidelines] [My Articles]
Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in
Thank you for your answer.Yes,it does work!!
-
Thank you for your answer.Yes,it does work!!
You're welcome. :)
Luc Pattyn [Forum Guidelines] [My Articles]
Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in