I'm using SetTimer to create an event which then executes a sub when it's elapsed. I assign the event a unique id (lUID in this code)
but in the returning sub...VB Code:
SetTimer frmMain.hwnd, lUID, lEventInterval, AddressOf TimerProc
nIDEvent always equals 275...what's up with that?VB Code:
Sub TimerProc(ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long) MsgBox nIDEvent KillTimer frmMain.hwnd, nIDEvent End Sub
The timer isn't getting killed because 275 is not the ID I gave it. Since I'm setting multiple timers, it would be useful if the ID I assigned it could get returned so I know which timer it was that elapsed.
I hope somebody understands that, thanks




Reply With Quote