hi friends..
can we set timer interval property during run time..(foe example. to a textbox)
is it possible..
if possible means based on that interval the application is to be closed.
how to do that..
regards
gopal
Timer..
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

AlanRank #669 · 3.6K reputationPosted Nov 21, 2008, 1:57 AM EST
Yes, you can change the timer interval at runtime:
if (timer1.Enabled) timer1.Stop();
timer1.Interval = int.Parse(textBox1.Text);
timer1.Start();
Then, in the timer1_Tick eventhandler, to quit the application, call:
timer1.Stop();
Application.Exit();