* "Denise" <we******@indy.rr.com> scripsit:
Does anyone know how to play a sound that is different from the sound you
get by calling beep()?
When the user presses 'Save', I don't want to display a dialog box each time
saying that the save was successful, but I would like a simple audible
indication.
I'd like to use the same sound that plays when showing a messagebox with
MessageboxIcon.Information.
\\\
Private Declare Auto Function MessageBeep Lib "user32.dll" ( _
ByVal wType As Int32 _
) As Int32
Private Const MB_ICONASTERISK As Int32 = &H40 ' Information.
Private Const MB_ICONEXCLAMATION As Int32 = &H30 ' Ausrufezeichen.
Private Const MB_ICONHAND As Int32 = &H10 ' Stopschild.
Private Const MB_ICONQUESTION As Int32 = &H20 ' Fragezeichen.
Private Const MB_OK As Int32 = &H0 ' Standard-OK.
///
Usage:
\\\
MessageBeep(MB_ICONHAND)
///
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>