hi guys can you please help me I need to create a tick timer event on the in my class, can anybody help me to on how to go about doing this
please guys
hi guys can you please help me I need to create a tick timer event on the in my class, can anybody help me to on how to go about doing this
please guys
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Stefan138 reputationPosted Apr 16, 2009, 9:16 AM EDT
Hope this helps! Post back if this is not what you are looking for, or if you have any questions.
Phakamani Blose13 reputationPosted Apr 17, 2009, 12:42 AM EDT
thankx a lot for your responce but I wanted my timer to be within the class(in a class library project ), but anyway I already got the solution I copied the tick event from one of my form to my class and then it worked
private
System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer();timer.Enabled =
true;timer.Interval = 1000;
timer.Start();
this.timer.Tick += new System.EventHandler(this.timer_Tick); private void timer_Tick(object sender, EventArgs e){
//operations
}