12 Jul

C# Play Default Windows Sounds

This example shows how to play the default windows sounds.

Usage:

            //To play the classical beep sound, you can use the following code:
            System.Media.SystemSounds.Beep.Play();

            //Similarly, you can play the “Question” sound with this code:
            System.Media.SystemSounds.Question.Play();

Leave a Reply

Your email address will not be published. Required fields are marked *