how suppress auto build in ide for my winform usercontrols
i have several init开发者_如何学编程ialization items in my Load event that I would like to suppress when the project is opened in the vs2008 IDE. is there a directive that I can place in front of my c# code that would prevent execution.
.net 2.0
You could check for DesignMode
in the Load
event handler.
精彩评论