This documentation is archived and is not being maintained.

How to: Play a Beep from a Windows Form

This example plays a beep at run time.


public void onePing()
C# noteVisual C# Note

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

Compiling the Code

This example requires:

See Also