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.
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.
Phakamani BlosePosted Apr 17, 2009, 4:42 AM
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
}
StefanPosted Apr 16, 2009, 1:16 PM
Hope this helps! Post back if this is not what you are looking for, or if you have any questions.