Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the Timer class

Status
Not open for further replies.

Kirad

Programmer
Jul 13, 2001
5
CA
Hello, I want to run a program I've created in every 24hrs.
So if any of you have an idea let me know, cause I don't that much about the Timer class.
And all my methods for my program are been called from the main method so I'm thinking or creating something like another main method to call on that method that most of my other methods are been called upon.
 
You don't really have to use Timer. You can write a class that extends from Thread and put it to sleep for 24hours. After it 'wake up', you run your program and the after executing the program, your class will go back to sleep for 24 hours.

Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top