Playing a WAV Sound

S

SMiller

I have the site on how to play a wav sound from grahm R
seach as follows:private Declare Function Beep Lib "kernel32" (ByVal
dwFreq As Long, ByVal
dwDuration As Long) As Long

Public Sub PlayBeep()
Dim iCtr As Long

For iCtr = 0 To 5000 Step 10
'Play a tone of iCtr hertz, for 50 milliseconds
Call Beep(iCtr, 50)
DoEvents
Next iCtr
End SubWHERE DO I PUT It to play when a form opens?:

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top