Results 1 to 4 of 4

Thread: Timer control *RESOLVED*

  1. #1

    Thread Starter
    Registered User Virus00110's Avatar
    Join Date
    Jul 2002
    Location
    Williamsport, PA
    Posts
    290

    Talking Timer control *RESOLVED*

    is there a way that you can make the timer control interval be set so that it can be longer then a minute something like 5 minutes or would it be easier to do it with API's?
    Last edited by Virus00110; May 13th, 2003 at 07:49 AM.

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    You can use a timer to count each minute. Something like this :

    VB Code:
    1. Dim i As Integer
    2.  
    3. Private Sub Form_Load()
    4.  Timer1.Interval = 60000
    5.  i = 0
    6. End Sub
    7.  
    8. Private Sub Timer1_Timer()
    9.  i = i + 1
    10.  If i = 5 Then MsgBox "5 minutes have passed"
    11. End Sub


    Has someone helped you? Then you can Rate their helpful post.

  3. #3

    Thread Starter
    Registered User Virus00110's Avatar
    Join Date
    Jul 2002
    Location
    Williamsport, PA
    Posts
    290
    Originally posted by manavo11
    You can use a timer to count each minute. Something like this :

    VB Code:
    1. Dim i As Integer
    2.  
    3. Private Sub Form_Load()
    4.  Timer1.Interval = 60000
    5.  i = 0
    6. End Sub
    7.  
    8. Private Sub Timer1_Timer()
    9.  i = i + 1
    10.  If i = 5 Then MsgBox "5 minutes have passed"
    11. End Sub
    thanks manavo11 that did the trick.

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Anytime


    Has someone helped you? Then you can Rate their helpful post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width