Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The My.Computer.Audio object provides methods for playing sounds.
In This Section
How to: Play Sounds and Wait For Completion in Visual Basic
Demonstrates how to play sounds from a sound file or application resource and wait for them to complete.How to: Play Sounds in Visual Basic
Demonstrates how to play a sound from a sound file or application resource in the background.How to: Play Looping Sounds in Visual Basic
Demonstrates how to play a sound from a sound file or application resource as a continuous loop.How to: Stop Playing Sounds in the Background in Visual Basic
Demonstrates how to stop a sound playing in the background.How to: Play System Sounds in Visual Basic
Demonstrates how to play a system sound.
Reference
My.Computer.Audio Object
Describes the My.Computer.Audio object.My.Computer.Audio.Play Method
Describes the Play method.My.Computer.Audio.PlaySystemSound Method
Describes the PlaySystemSound method.My.Computer.Audio.Stop Method
Describes the Stop method, which is used to stop a sound that is currently playing.