This example plays a beep at run time.
public void onePing()
The sound played in the C# code sample is determined by the Beep system sound setting. For more information, see SystemSounds.
This example requires:
(Visual Basic) A reference to the Microsoft.VisualBasic namespace.
(C#) A reference to the System.Media namespace.