如何避免闪烁的窗体 [英] How to avoid the flickering windows forms

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

问题描述

我在Windows窗体中使用AutocompleteStringCollection类.在我的表单中,使用该stringCollection类,一个文本框包含500多个值.它在页面加载事件(即自动完成)上显示正常..

但是当我重新加载winform时,它看起来像是闪烁的窗体...如何避免这种情况?....



在此先感谢..,

I am using AutocompleteStringCollection class in my windows form. In my form, using that stringCollection class, a textbox contains more than 500 values. It shows on page load event (i.e., AutoComplete) works fine..

But When I reload the winform it looks like flicker the form... How to avoid that one?....



Thanks in advance..,

推荐答案

尝试使用表单的doublebuffer属性以避免闪烁.
try doublebuffer property of form to avoid flickering.


请尝试以下

WinForm冷冻机(C#)
Try this

WinForm freezer (C#)


由于控件重绘而发生闪烁.
使用control.DoubleBuffered属性.将其设置为true.
DoubleBuffered允许Control使用辅助缓冲区重绘其表面以避免闪烁.检查以下内容可能对您有帮助.

Page_load上的屏幕闪烁 [
Flickering occurs due to control Repainting.
use control.DoubleBuffered property. set it to true.
DoubleBuffered allows Control redraws its surface using secondary buffer to avoid flickering. check the following it might help you.

screen flicker on Page_load[^]


这篇关于如何避免闪烁的窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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