> Is there any way to prevent it?
> The timer I created is meant to be running when the application is
> running, not when its in design mode.
if( !DesignMode )
{
// start timer
}
Michael.Suarez@gmail.com - 06 Mar 2006 15:27 GMT
Thanks!
What threw me off is that I wasn't expecting the code from the base
form to be executed while in design mode. I assumed code was only meant
to be executed at run time. But being as you can control what gets
executed at design time by using this.DesignMode, it's a cool feature.
One note about using this.DesignMode in is, at least what i was
experiencing, that DesignMode will always be false when you are
checking it from the constructor. Therefore, I had to check for
DesignMode in the Load event of the form.