Spiel79 Posted February 11, 2004 Posted February 11, 2004 Hi, Can someone please tell me how do write code for a timer? Specifically, I want a form to execute a particular code every, say, 60 minutes. How do I do this? Quote
Leaders Iceplug Posted February 11, 2004 Leaders Posted February 11, 2004 If you add the Timer to your form from the Toolbox, you can add the code in your Timer's Tick Event handler: Private Sub Timer1_Tick(ByVal sender As Object, Byval e as System.EventArgs) Handles Timer1.Tick End Sub And set the interval to 60000 ms = 60 s = 1 minute :). Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.