博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

有效解决WinForm窗体背景图片导致闪屏刷新问题

Posted on   未页  阅读(1294)  评论(0编辑  收藏  举报

this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);

this.SetStyle(ControlStyles.DoubleBuffer, true);

this.SetStyle(ControlStyles.UserPaint, true);

this.SetStyle(ControlStyles.ResizeRedraw, true);

努力加载评论中...
点击右上角即可分享
微信分享提示