winform 控件背景图闪烁,先显示黑块才显示背景图

wangjidemima 2012-07-30 01:55:54
winform 控件背景图闪烁,先显示黑块才显示背景图
这个问题有好的解决办法吗?

InitializeComponent();
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true);
this.SetStyle(ControlStyles.UserPaint, true);

这样写的双缓冲也没感觉到效果 求教
...全文
253 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
美丽的鸡翅膀 2012-07-30
  • 打赏
  • 举报
回复
你是把哟背景的空间底色设置透明了吧,把透明底色去掉,换成系统的默认色看看。
wangjidemima 2012-07-30
  • 打赏
  • 举报
回复
求解……
wangjidemima 2012-07-30
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]

背景图是不是过大?
[/Quote]

背景图1024*768的 大小140KB
几个button背景图 15KB
全部图加起来也就500KB

……
popo0762 2012-07-30
  • 打赏
  • 举报
回复
背景图是不是过大?

110,545

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧