Interaction.Beep Method ()
.NET Framework (current version)
Sounds a tone through the computer's speaker.
Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
public static void Beep()
The pitch and duration of the beep depend on your hardware and system software and therefore vary among computers.
The Beep function requires UIPermission at the SafeTopLevelWindows level, which may affect its execution in partial-trust situations. For more information, see UIPermission.
This example uses the Beep function to sound a tone through the computer's speaker.
Return to top
Available since 1.1