C#winform 写了个透明的listbox,然后切换到下一条信息,无背景色

透明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就没问题。求解

看了下你的代码,并非是真正的透明,只是通过重绘把没有选中的条目的背景色设置为窗体颜色罢了。如果窗体上有背景图就露馅了。