Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Killtimer API

Status
Not open for further replies.

ssmgr

Technical User
Feb 2, 2003
40
AU
Does anyone know how to use the KillTimer API? I have used SetTimer API from User32.dll to create a timer object on a VBA form, but when I hide the form the timer still keeps running.

I tried calling KillTimer with the timer object's windows handle (returned by SetTimer) as the first paramater, but I don't know what to put in the second parameter. Anyway, I called it with a 0 and a 1 as the second parameter and it doesn't work. Any ideas??

Steve
 
Forget it, I worked it out for myself. I should have passed the timer's handle as the second parameter and the first one should have been null. It works like that anyway.

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top