Play a beep with default frequency and duration (800 and 200 respectively) : Beep « Development « C# / CSharp Tutorial






using System;
using System.Windows.Forms;
using System.Media;

public class MainClass {
   public static void Main() {

       Console.Beep();

   }
}








14.33.Beep
14.33.1.Play a beep with default frequency and duration (800 and 200 respectively)
14.33.2.Play a beep with frequency as 200 and duration as 300