J joe Jan 12, 2004 #1 Hi, How do I make the bell sound, heard when some message boxes are displayed? Thanks
K Ken Tucker [MVP] Jan 12, 2004 #2 Hi, You have to use the API to do it. Declares Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, ByVal uFlags As Integer) As Integer Const SND_ASYNC = &H1 ' play asynchronously To use sndPlaySound("C:\windows\media\notify.wav", SND_ASYNC) Ken
Hi, You have to use the API to do it. Declares Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, ByVal uFlags As Integer) As Integer Const SND_ASYNC = &H1 ' play asynchronously To use sndPlaySound("C:\windows\media\notify.wav", SND_ASYNC) Ken
H Herfried K. Wagner [MVP] Jan 12, 2004 #3 * "joe said: How do I make the bell sound, heard when some message boxes are displayed? Click to expand... P/invoke on 'MessageBeep': <http://groups.google.com/groups?selm=um#[email protected]>
* "joe said: How do I make the bell sound, heard when some message boxes are displayed? Click to expand... P/invoke on 'MessageBeep': <http://groups.google.com/groups?selm=um#[email protected]>
A a Jan 12, 2004 #4 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Beep() End Sub Kevin
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Beep() End Sub Kevin