PHP Code: 
 private void axWindowsMediaPlayer1_Enter(object senderEventArgs e)
        {
            
            
String playname listBox1.SelectedItem.ToString();
            
richTextBox3.Text playname;
            
axWindowsMediaPlayer1.URL playname;
            
axWindowsMediaPlayer1.Ctlcontrols.play();
            
axWindowsMediaPlayer1.Ctlcontrols.pause();
            
axWindowsMediaPlayer1.Ctlcontrols.stop();
            
axWindowsMediaPlayer1.Ctlcontrols.next();

        } 
I sometimes get error in between something to use new function for extracting string.
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.
pankaj Reviewed by pankaj on . Play selected listbox item 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(); Rating: 5