读书人

c# mediaplayer 播放有关问题

发布时间: 2012-10-26 10:30:59 作者: rapoo

c# mediaplayer 播放问题
哪位大侠可以告诉我为什么程序this.axWindowsMediaPlayer1.Ctlcontrols.playItem(axWindowsMediaPlayer1.currentPlaylist.get_Item(s));前后2次令s=0。但播放的结果却不一样,前后相差一首歌????
public void play(int s)
{
axWindowsMediaPlayer1.Ctlenabled = true;
this.axWindowsMediaPlayer1.Ctlcontrols.playItem(axWindowsMediaPlayer1.currentPlaylist.get_Item(s));

}

[解决办法]
设置列宽就行了,你也可以写拖动事件啊,即使拖了也设置列宽为0,就隐藏了

读书人网 >C#

热点推荐