Learn something new everyday.....
This article mentions what u said:
http://msdn.microsoft.com/library/de...edebugging.asp
Any class that derives from the Component class has a property called
DesignMode that is set to true when the code is executing within the
constructs of the Visual Studio .NET designer. So you have the option to
wrap code within an if statement. There's one more trick, however. The
DesignMode property isn't set to true in the constructor. Remember, there's
no real magic here. Visual Studio .NET creates your object as it parses the
InitializeComponent() method. Once the object is constructed, Visual Studio
..NET keeps track of the objects it creates.....
Microsoft needs to update the documentation for Component.DesignMode
Property:
http://msdn.microsoft.com/library/de...nmodetopic.asp
to reflect this information!!!
Dave