Tell me, is it possible to play system sounds in a wfp application?
I want to implement the following: when a certain event appears, a warning appears and the system sound "Windows Notify" is played.
Tell me, is it possible to play system sounds in a wfp application?
I want to implement the following: when a certain event appears, a warning appears and the system sound "Windows Notify" is played.
Of course available. Only the set of sounds is not very large:
System.Media.SystemSounds.Asterisk.Play(); System.Media.SystemSounds.Beep.Play(); System.Media.SystemSounds.Exclamation.Play(); System.Media.SystemSounds.Hand.Play(); System.Media.SystemSounds.Question.Play();
To play any other sounds (only WAWE) use:
System.Media.SoundPlayer
Source: https://ru.stackoverflow.com/questions/10801/
All Articles