Thursday, June 11, 2009

C# How to beep from your computer

How to make a beep sound from your computer?
Although you can use any sound library to work for you, there is a simple way to make just a beep sound. This becomes useful especially when you are running a program for a long time and you want to be notified when any certain condition reaches.
Thanks to Microsoft, we can achieve this in one line of code with the build-in methods.

Console.Beep();//No parameter
Console.Beep(250, 250);//Parameter: int frequency, int duration


0 Responses to "C# How to beep from your computer"

Post a Comment



Copyright 2009 All Rights Reserved Revolution Two Lifestyle theme by Brian Gardner | Blogger template converted & enhanced by eBlog Templates