DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Beep

05.27.2007
| 3033 views |
  • submit to reddit
        
        [DllImport("kernel32.dll")]
        public static extern bool Beep(int freq, int duration);

        static void Main(string[] args)
        {
            Beep(1000, 50);
        }