This must be an easy one, but I'm trying for a long time already, so I'll ask you guys. I'm using an updown-control. When I click the Up or Down button, a procedure is started. What I would like to do is repeat this procedure after a certain time when the user is still clicking the button.
This is what I've got so far...
This is what I've got so far...
Code:
Private Sub updPlanning_DownClick()
Call Procedure1
End Sub
Private Sub updPlanning_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim sStart As Single, sStop As Single
DoEvents
Call Procedure1
sStart = Timer
sStop = Timer + 0.25
Do Until sStart >= sStop
sStart = Timer
Loop
End Sub[\code]
Sfenx 8-)