透明listbox写法http://blog.sina.com.cn/s/blog_42678ac60102vnmn.html
,我的代码如下private void next_Click(object sender, EventArgs e)
{
int index = exListbox1.SelectedIndex;
exListbox1.SelectedIndices.Clear();
if (index == -1)
{
return;
}
index++;
if (index == exListbox1.Items.Count)
{
index = 0;
}
exListbox1.SelectedIndex = index;
musicPlayer.URL = listSongs[index];
musicPlayer.Ctlcontrols.play();
}
不用透明的listbox就没问题。求解