How to: Play a Beep from a Windows Form
.NET Framework 4.5
This example plays a beep at run time.
C# 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:
-
(Visual Basic) A reference to the Microsoft.VisualBasic namespace.
-
(C#) A reference to the System.Media namespace.
C# Note