Results 1 to 2 of 2

Thread: Timer

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    West Launceston
    Posts
    15
    Hi I have a timer getting the time and putting it into the labels caption, to sort of make a timer that is more accurate for an inerval of 1 second. And I am putting what I want to happen after each second in the labels change event. but the problem is the label change event takes a bit to long to make the timer to accurate, so I was wondering is there a way to get a timer to check a labels change event?

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Posts
    305
    I hope this works for you:

    Code:
    Dim Changed As Integer
    
    Private Sub Label1_Change()
    Changed = 1
    End Sub
    
    Private Sub Timer1_Timer()
    If Changed = 1 Then
    THE LABEL HAS BEEN CHANGED
    Changed = 0
    Else
    UNCHANGED MELODY =)
    End If
    End Sub
    bob

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