We have a control that is throwing an exception in a static initializer
when viewed in VS2005 designer as a subcontrol on a form. The exception
doesn't get thrown when designing the control itself, nor does it get
thrown in normal run-time, so it must have something to do with the fact
that the control is being loaded in the designer.
I know there is a 'this.DesignMode' available, but I can't use it from the
static contructor (since I don't have access to 'this'). I don't want to
simply catch and throw away the exception. Is there some other way that I
can determine if I'm in the designer?
-mdb