用户控件闪烁 [英] Flickering in user controls

查看:76
本文介绍了用户控件闪烁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有某些用户控件的win窗体,我使用create param使它们透明,并使用另一个create param来防止闪烁,但这使我的控件无法在XP窗口上绘制..也许有人建议任何解决方案. .thanks

i have a win form with some user controls,i am using create param to make them transparent,and another create param to stop flickering,but this stops my controls from being drawn on window xp..may someone suggest any solution..thanks

推荐答案

消除可见闪烁的有效方法是使用双缓冲,但这不需要System.Windows.Forms.CreateParams.您可以使用属性System.Windows.Forms.Control.DoubleBuffered:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.doublebuffered.aspx [ ^ ].

希望它能解决您的问题.

—SA
The effective way of elimination of visible flicker is using double buffering, but this does not require System.Windows.Forms.CreateParams. You can use the property System.Windows.Forms.Control.DoubleBuffered:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.doublebuffered.aspx[^].

I hope it can resolve your problem.

—SA


这篇关于用户控件闪烁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆