Programming with Reflection
PlaySound method
Syntax object.PlaySound SoundFile, Asynchronous
Plays a wave sound file.
SoundFile Argument Type: String
Required
Specifies the path and name of a .wav sound file. An error is generated if the file doesn't exist or can't be found.
Asynchronous Argument Type: Boolean
Optional
If this argument is True, the sound plays asynchronously, which means PlaySound returns immediately, and the procedure continues before the sound has completed. If this value is false, the sound plays synchronously, which means PlaySound waits until the sound has finished before returning. If this argument is omitted, the default value is False.