0 out of 1 rated this helpful - Rate this topic

How to: Play a Beep from a Windows Form

This example plays a beep at run time.

public void onePing()
{
    SystemSounds.Beep.Play();
}
C# noteC# Note

The sound played in the C# code sample is determined by the Beep system sound setting. For more information, see SystemSounds.

This example requires:

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.