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();
 

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

Sound in C# ??? 4
Capturing key event and remove beep! 2
Beep 2
Cast on C# 3
Collection of C# 5
Beep() does not work! 10
Advice on moving to C# 5
Really simple question on 'msgbox' 1

Back
Top