Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

  • Leaders
Posted

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 :).

Iceplug, USN

One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...