默认状态下控件axWindosMediaPlayer的上一首和下一首按钮都是灰色的不可用状态,试过向播放列表添加项了但是没用,要怎么样才能启用这两个按钮呢?

解决方案 »

  1.   

    开源项目PowerMPlayer与libvlc.net能实现你需要的效果,axWindosMediaPlayer有太多的不方便了
      

  2.   

    系统的组件是这样的,有时候还不稳定,会出错,呵呵!!!
    你用一个ListBox来做一个播放列表吧,再用Button事件去选择播放哪一首
      

  3.   

    要往初始化控件的currentlist内容 :        WMPLib.IWMPPlaylist currentList;
            WMPLib.IWMPMedia Media;
    currentList = wmpSongPlayer.newPlaylist(strChoiseSongGroup, "");//声明currentList为当前播放列表
    Media = wmpSongPlayer.newMedia(“歌曲”);
    currentList.appendItem(Media);
    wmpSongPlayer.currentPlaylist = currentList;