Alex Rivera | Logout

How can I make the computer beep in C#?

Asked 2008-11-26T15:38:53.603
130

How do I make the computer's internal speaker beep in C# without external speakers?

Edit
Report

1 Answer

17

Print the bell character (ASCII code 7). You can use the escape sequence \a from alert/alarm 1.

Console.WriteLine("\a")            

1 \b is for backspace

answered 2008-11-26T15:40:27.563

Your Answer