How to have code in the constructor that will NOT be executed at design time by Visual Studio?

前端 未结 5 1950
鱼传尺愫
鱼传尺愫 2020-12-15 19:54

I have a method call in the constructor of my user control that does something that won\'t work at design time (connecting to a database), and Visual Studio just bailed out

5条回答
提交回复
热议问题