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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AlanPosted Nov 21, 2008, 6:57 AM
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();