Re: Control.DesignMode issues.

Andy Langowitz <[email protected]> Thu, 13 Dec 2007 17:11:23 -0500
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <LISTSERV%[email protected]>
I, like you have been surprised in the past by DesignMode returning false
even in design mode.  My recollection is that DesignMode does not return
true until after a certain stage of the Control's life cycle.  In
particular, DesignMode always returns false in the constructor, and it may
even still be false in the Load event (I may be wrong about that).

Warning: I last dealt with this in .NET 1.1, so I don't know if it has
changed in .NET 2.0, let alone .NET 3.