Beep in c#

  • Thread starter Thread starter moondaddy
  • Start date Start date
moondaddy,

You could always set a reference to Microsoft.VisualBasic.dll, and then
call the static Beep method on the Interaction class in the
Microsoft.VisualBasic namespace.

Hope this helps.
 
moondaddy said:
I'm a vb guy learning c#. What's the equivalent of the vb beep function in
c#?

If you are writing a console app, you could use this:

Console.Beep()
 
Use the SystemSounds, as in:

public void onePing()
{
SystemSounds.Beep.Play();
 
Back
Top