Re: Once again - Object of type x...

Chris Anderson <[email protected]> Mon, 18 Dec 2006 20:35:39 -0000
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <[email protected]>
> > This is the generally recommended approach.
> > If you get into a habit of checking this.DesignMode it stops
> > a lot of unexpected problems (and helps to stop the IDE
> > feeling sluggish as it runs runtime code (possibly trying to
> > access databases, etc!))
> 
> How will this (or better yet, will it at all) help the situation where
> the
> project has 'nested' controls?

The "in-design" usercontrols and their nested controls will not be
communicating with each other (at least they will not be passing user
classes between each other) because that code will be hidden behind a
check for DesignMode and will therefore not be executed.

Chris

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com