PHP:
private void axWindowsMediaPlayer1_Enter(object sender, EventArgs e)
{
String playname = listBox1.SelectedItem.ToString();
richTextBox3.Text = playname;
axWindowsMediaPlayer1.URL = playname;
axWindowsMediaPlayer1.Ctlcontrols.play();
axWindowsMediaPlayer1.Ctlcontrols.pause();
axWindowsMediaPlayer1.Ctlcontrols.stop();
axWindowsMediaPlayer1.Ctlcontrols.next();
}
How to use that function ?
How to do this - If I double click a listbox item, WMP starts playing it.
Another thing is when I select a song from listbox and click play it plays, but the play button looks inactive at default though everything works and plays correctly.