using System.Runtime.InteropServices; using System.Windows.Forms; class Piiks{ [DllImport("kernel32.dll")] public static extern bool Beep(uint sagedus, uint kestus); public static void Main(string[] arg){ Beep(800, 2000); MessageBox.Show("Tuli piiks"); } }