I was wondering how to include sound when someone puts their mouse over the button. Just wondering what is out there....looking for something like the forum to install like Norton 2003.
Thanks JeffS
I tried to use the code above, for some reason I could not get any sound when I clicked or put my mouse over the command button. Was there something I was missing? I put command1 code in the COMMAND1.....
Is there a way I can still click on the COMMAND BUTTON and still play the sound (.wav)? This code beeps and then executes without clicking it...mouse going over it executes....any ideas?
Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Shell "D:\JeffSCD\norton.bat", 1
Dim ret As Long
If SoundWasPlayed = False Then
ret = sndPlaySound("C:\windows\media\ding.wav", SND_ASYNC)
End If
SoundWasPlayed = True
Hey thanks, ClickHere (Programmer) worked kind of like how i wanted but putting the mouse it executed it if I clicked on it (not good), thank you I like knowing when I click on the button (with a sound).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.