如题。
使用了下面的代码设置了listview背景为透明。运行后Item也都成透明了的,字体颜色设成什么都不行! public class newListView : ListView
{ public newListView()
{
SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.SupportsTransparentBackColor, true); this.BackColor = Color.Transparent; }
}
使用了下面的代码设置了listview背景为透明。运行后Item也都成透明了的,字体颜色设成什么都不行! public class newListView : ListView
{ public newListView()
{
SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.SupportsTransparentBackColor, true); this.BackColor = Color.Transparent; }
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货