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!

Question - different events on button click and button release

Status
Not open for further replies.

jamesu

Technical User
Sep 27, 2001
7
ZA
Hi there

I'm not sure if this is possible. I was just wondering if it is possible at all to specify one event procedure to occur when a button is pressed, and another to occur when it is released.

The reason for this is that I am trying to make a button that plays a sound while it is being clicked on, and stops the sound when it is released.

Any ideas?

Thanks

James
 
Hiya

The MouseDown and MouseUp events should do the trick...

pjm
 
Hi pjm

Thanks! I always wondered what those events were for :)

Cheers

James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top