hello guys how r u ?
my question is that, i have created a method which retrieve data from a service and i want to call that function in the timer that when timer tick event fire that function should be call ... how can i do it ??
please reply soon
thanks
How can i use any method in the timer ?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
SenthilkumarRank #387 · 6.5K pointsPosted Apr 10, 2012, 1:47 AM EDT
You can do that. It supports a calling method ashyonchrously.. you can call the method in tick event,.
Normally the timer can be written like this.
It will call the method every time based on the interval set.
You can get more info:
http://msdn.microsoft.com/en-us/library/system.windows.forms.timer.tick.aspx
Faisal AnsariRank #4,104 · 363 pointsPosted Apr 10, 2012, 2:32 AM EDT