How to create a button that makes a sound when pressed in C#

How to create a button that makes a sound when pressed in C#
2 Replies
Denver (toast12)
Denver (toast12)OP2y ago
I want to play a sound in a certain path other than a beep sound.
Doombox
Doombox2y ago
it depends which framework you are using and what file type you want to play you can use SoundPlayer to play .wav files WPF has MediaPlayer

Did you find this page helpful?