|T O P I C R E V I E W
||Posted - 07 Feb 2007 : 16:44:46
the examples I received with my purchase of you product uses
'If Me.IsDesignMode Then' in the VB versions when dealing with the Timer.
When I try to check it out I see it is in com.quinncurtis.chart2dnet.ChartView.IsDesignMode().
The definition I get is "Specifies if the current instance is in design mode. "
What does design mode imply?
|1 L A T E S T R E P L I E S (Newest First)
||Posted - 08 Feb 2007 : 09:17:11
When you place a control on a form in the VB IDE, you are instantiating (running the code) of the control, in "design mode". This is different than "run-time mode", where you are actually executing the program. We don't want our ChartView derived user controls exectuting real-time updates via the timer while in design mode. This can lead to errors that are hard to debug and which will prevent you from adding the control to a form. That's why you see that we use 'If Me.IsDesignMode Then' to skip real-time updates if the control is being used in "design mode".
If you want to read more about design mode vs run-time mode, just enter:
.net vb "design mode"