Hi Peter,
Declare this before the form's load event:
Private Declare Function PlaySound _
Lib "WINMM.DLL" Alias "sndPlaySoundA" _
(ByVal lpszSoundName As String, _
ByVal uFlags As Long) As Long
Private Enum playsoundflags
async = &H1
sync = &H0
End Enum
Then call it like this:
PlaySound("c:\mozart3.wav", playsoundflags.async)
HTH,
Bernie Yaeger
"Peter Schmitz" <Pe**********@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
Hi,
how can I play a windows standard sound (like the one when an error
occurrs)
out of my vb.net project?
Thanks
Peter