vb.net system beep sound on XP
- by Toby
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