باید از قطعه کد زیر در کلاس Console استفاده کرد:
public static void Beep ( int frequency, int duration)
Console.Beep(1000, 5000);
Printable View
از API هم میشه
[DllImport("kernel32.dll")]
public static extern int Beep(int dwFreq, int dwDuration);