private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if ( axWindowsMediaPlayer1.playState == WMPLib.WMPPlayState.wmppsStopped)
{
listBox1.SelectedIndex = listBox1.SelectedIndex + 1;
axWindowsMediaPlayer1.URL = paths[listBox1.SelectedIndex];
{
if ( axWindowsMediaPlayer1.playState == WMPLib.WMPPlayState.wmppsStopped)
{
listBox1.SelectedIndex = listBox1.SelectedIndex + 1;
axWindowsMediaPlayer1.URL = paths[listBox1.SelectedIndex];



















http://stackoverflow.com/questions/28306515/open-and-close-dancing-cd-in-c-sharp
#programowanie #csharp