|
-
April 16th, 2001, 08:17 PM
#1
Timer problem in vb
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
-
April 16th, 2001, 10:52 PM
#2
100ms is pretty fast. Almost to fast to even need a timer.
What are you trying to do? Your sample clips look ok. I don't think it's a bug. If you want send me your project or an example of what you are doing. I'll see what I can do. Remember to comment your code.
[email protected]
-opiate
-
April 17th, 2001, 11:15 AM
#3
I am with opiate....Why use a timer in this situation. Your just creating exess processing time. I am curious.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks