How do I invoke System Beep in Windows Forms?

  • Thread starter Thread starter Guest
  • Start date Start date
have a look at PInvoke.net and use the win32 Beep function

else import the microsoft.vb namespace there is a function in there somewhere,
if u can't find it let me know and i'll search it out for you.
 
This is obvious missing in C#.NET, why??
So much for managed code...

This works, but is not managed code:

[DllImport("user32.dll")]
private static extern bool MessageBeep(int uType);

MessageBeep(-1);
 
Or...

Add References: Microsoft.VisualBasic

Microsoft.VisualBasic.Interaction.Beep();


Seems they forgot the beep i C#?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Beep() does not work! 10
continuous BIOS beep 2
how to create a WAV file of different tones? 1
Capturing key event and remove beep! 2
Unknown source of beeping 14
Default Beep 3
BEEP while working 4
Making a true Beep 1

Back
Top