SoundPlayer::SoundLocationChanged Event
.NET Framework (current version)
Occurs when a new audio source path for this SoundPlayer has been set.
Assembly: System (in System.dll)
This event is raised when a new audio source path for this SoundPlayer has been set.
For more information about handling events, see NIB: Consuming Events.
The following code example demonstrates the use of the OnSoundLocationChanged event handler to receive a notification when the SoundPlayer has been attached to a different .wav file. This code example is part of a larger example provided for the SoundPlayer class.
.NET Framework
Available since 2.0
Available since 2.0
Show: