View Full Version : Need a BEEP() in vb.net CF
jeisner
08-30-2004, 07:52 AM
Hi a need a simple beep sound in a VB.NET CF application, I tried VisualBasic.Interaction.Beep() which gives no errors but also gives no sound in a compact framework app.... Is there something else that works?
humbletim
08-31-2004, 12:41 AM
Hi a need a simple beep sound in a VB.NET CF application, I tried VisualBasic.Interaction.Beep() which gives no errors but also gives no sound in a compact framework app.... Is there something else that works?
You can try this method (from the .NET CF FAQ (http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/faq/default.aspx)):
http://samples.gotdotnet.com/quickstart/CompactFramework/doc/playsounds.aspx
It shows how to call WCE_PlaySound directly. \Windows\Default.wav is probably a reliable file to play for a generic beep on most devices.
-t
jeisner
08-31-2004, 01:48 AM
Thanks that works fine!
vBulletin® v3.8.9, Copyright ©2000-2019, vBulletin Solutions, Inc.