Sagaert Johan wrote:
Hi
I stumbled to this :
I have a form and in the contructor i put
if (this.DesignMode)
return;
other code here
The IDE designer throws an exception and points to a line in the 'other
code" block .
Any reason why ?
Hi,
Because you're in the constructor of your object, it stands to reason that
DesignMode will *not* have a value... since you're only _just_ constructing
your object, nothing will have set DesignMode.
There's another way to do it, but I cannot remember off the top of my head.
Something to do with a license manager IIRC.
--
Hope this helps,
Tom Spink
Google first, ask later.