Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

Beep Procedure

Class

Microsoft.VisualBasic.Interaction

Syntax

Beep( )

Description

The Beep procedure sounds a tone through the computer's speaker.

Usage at a Glance

The frequency and duration of the tone depend on the computer's hardware. The user can also mute all system sounds, and some users may be limited in their ability to hear the generated tone.

Example

Public Sub Main( ) DoSomeLongFunction( ) Beep( ) MsgBox("Finished!") End Sub

Категории