Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
The following code example plays theExclamationsystem sound at run time. For more information about system sounds, see SystemSounds.
Example
Public Sub PlayExclamation()
SystemSounds.Exclamation.Play()
End Sub
public void playExclamation()
{
SystemSounds.Exclamation.Play();
}
Compiling the Code
This example requires:
- A reference to the System.Media namespace.
See Also
Tasks
How to: Play a Beep from a Windows Form
How to: Play a Sound from a Windows Form