I have a method call in the constructor of my user control that does something that won't work at design time (connecting to database), and the VS just bailed out when I tried to add that control to the GUI designer. Sure I can factor out those code to a separate method, but I don't like the idea that everytime I use that object I need to remember to execute a certain method which is essential to that object's function (that's what the constructor is for!).
Is there something like a preproccessor symbol that I can mark my code with so that the VS won't try to execute that code at design time?