Wednesday, September 23, 2009

C# Snippets: Beeping the PC Speaker in C#

[DllImport("Kernel32.dll")]
public static extern bool Beep(UInt32 frequency, UInt32 duration);
public static void BeepMe()
{
int Frequency = 500;
int DurationInMS = 100;
Beep(Frequency, DurationInMS);
}

..

No comments:

Post a Comment

Followers