开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜