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
Have a look at this
Component.DesignMode Property