Csharp/CSharp Tutorial/Development/Beep
Play a beep with default frequency and duration (800 and 200 respectively)
using System;
using System.Windows.Forms;
using System.Media;
public class MainClass {
public static void Main() {
Console.Beep();
}
}
Play a beep with frequency as 200 and duration as 300
using System;
using System.Windows.Forms;
using System.Media;
public class MainClass {
public static void Main() {
Console.Beep(200, 300);
}
}