hie all.
i am new to c#, ma y you please help me on how to stop a timer. i created a timer during design time.
i am looking at some sources here and they say i must use
but when i try to use it i am getting an error saying
what i am trying to accomplish is that my dialog must close after a certain time, if i use
it is not stopping the timer,
i wanted the timer to stop completely when i click a button on that dialog and i am puttting a
on the click event
thanks in advance
i am new to c#, ma y you please help me on how to stop a timer. i created a timer during design time.
i am looking at some sources here and they say i must use
Code:
timer.stop();
Code:
"error CS1061: 'System.Windows.Forms.Timer' does not contain a definition for 'stop' and no extension method 'stop' accepting a first argument of type 'System.Windows.Forms.Timer' could be found (are you missing a using directive or an assembly reference?) "
Code:
timer.Enabled = false;
i wanted the timer to stop completely when i click a button on that dialog and i am puttting a
Code:
timer.enabled = false
thanks in advance
Comment