.NET Framework 4.6 and 4.5
Sounds a tone through the computer's speaker.
Public Shared Sub 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.
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client Profile
Supported in: 4, 3.5 SP1