vb.net system beep sound on XP
Posted
by
Toby
on Stack Overflow
See other posts from Stack Overflow
or by Toby
Published on 2012-04-11T17:26:28Z
Indexed on
2012/04/11
17:29 UTC
Read the original article
Hit count: 401
Is it possible to have a vb.net program sound the PC's internal speaker? you know the one that produces C's \a
BELL
I have tried beep()
, but this only produces the error sound on the sound card.
I have also tried
<Runtime.InteropServices.DllImport("KERNEL32.DLL", EntryPoint:="Beep", SetLastError:=True, _
CharSet:=Runtime.InteropServices.CharSet.Unicode, ExactSpelling:=True, _
CallingConvention:=Runtime.InteropServices.CallingConvention.StdCall)> _
Public Shared Function _
aBeep(ByVal dwFreq As Integer, ByVal dwDuration As Integer) _
As Boolean
End Function
With no joy apparently its only good on vista and above Any suggestions? thanks
© Stack Overflow or respective owner