ant2334gog
April 16th, 2001, 09:17 PM
When I set the timer interval for two timers as 1, and they are both enabled at the same time it seems to go faster then when only one is enabled, could this be a problem with my computer or Vb itself, someone else try it
sample code below with the timers controling the two images(command buttons to enable the timers one at a time)
Public m As Integer
Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
Private Sub Command2_Click()
Timer2.Enabled = True
End Sub
Private Sub Form_Load()
m = 100
End Sub
Private Sub Timer1_Timer()
Image1.Top = Image1.Top - m
End Sub
Private Sub Timer2_Timer()
Image2.Top = Image2.Top - m
End Sub
sample code below with the timers controling the two images(command buttons to enable the timers one at a time)
Public m As Integer
Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
Private Sub Command2_Click()
Timer2.Enabled = True
End Sub
Private Sub Form_Load()
m = 100
End Sub
Private Sub Timer1_Timer()
Image1.Top = Image1.Top - m
End Sub
Private Sub Timer2_Timer()
Image2.Top = Image2.Top - m
End Sub