Skip to content

HOW TO PLAY WAV/MP3 FILES FROM WINDOWS APPLICATION

ananth

Asked Jul 18, 2007, 8:33 AM EDT1 answer
Share
LinkedInX

Dear Friends,

I wish to open music files(.wav /.mp3 etc.,) from my windows application. I have used a text /list box and displayed all the wav file names therein and I select one. After that by using the undernoted code I have opened the selected file. That is fine.

using System.Diagnostics;

System.Diagnostics.Process.Start(filrefTextBox.Text);


The problem is when I want to iterate the same file for say 10 times, i.e. play the same song for ten times, every time I have to close the media player and also the media player pops up at every usage.

The Help I look to you all is :
1.  I must be in a position to play the music but the media player object should not be displayed or should be in minimised mode.

2. I must not close the player object everytime and open it again in the 'for loop'

Thank you all in advance
regards

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Dear Friends,
    Is my request an impossible task??
    0