Beeping without using the console

  • Thread starter Thread starter Gary Milton
  • Start date Start date
G

Gary Milton

If using VB.NET you can use the built-in 'Beep' function or you can p/invoke
the Win32 API 'Beep' function. For C# see the following link which gives an
example on p/invoking the Win32 API function...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp09192002.asp

HTH,
Gary

agro_r said:
We can make the PC Speaker beep by using:

Console.Write('\a');

But that statement needs the Console to work. I want to build a
WinForms app that beeps, but surely I don't want a console floating
around. Is there any way I could do this?

Thanks a lot.



----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
=---
 
We can make the PC Speaker beep by using:

Console.Write('\a');

But that statement needs the Console to work. I want to build a
WinForms app that beeps, but surely I don't want a console floating
around. Is there any way I could do this?

Thanks a lot.
 
Thanks a lot. But that's quite sad, since it makes my program non
platform independent :).
 
Back
Top