private void button3_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter = "Music|*.mp3";
if(ofd.ShowDialog()==DialogResult.OK)
{
SoundPlayer sp = new SoundPlayer(ofd.FileName);
sp.Play();
}
}
I tried the given code but its not showing up.Instead of that program freezes. And off course there is already [STATHREAD] in main method.Please help!