Silvio Pereira
Silvio Pereira

Reputation: 65

Button click open song file

I'm a begginer in visual basic wpf apps, i just want to click on a button and it play the song. My task is to put some alarm songs on this app just to give it to my mate and he chooses the best alarm song.

Upvotes: 1

Views: 110

Answers (1)

dhilmathy
dhilmathy

Reputation: 2868

You can use System.Windows.Controls.MediaElement to play music files.

http://vbcity.com/blogs/xtab/archive/2009/06/29/how-to-play-sounds-and-music-in-wpf.aspx

Upvotes: 2

Related Questions