如何避免Windows应用程序工具条菜单项中的窗体边框闪烁 [英] how to avoid blinking Form Border in Windows Application Tool Strip Menu Item

查看:78
本文介绍了如何避免Windows应用程序工具条菜单项中的窗体边框闪烁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我的Windows应用程序中.我有一个母版页,其中包含工具条菜单项.
母版页"在工具条"菜单项内不包含任何模块.

我的问题是,当Iam在该空白之间的母版页中打开一个表单到另一个表单时

它闪烁,并且表格上方边框也以蓝色显示,仅一秒钟或半秒钟.对于整个应用程序来说,这是非常糟糕的外观.要避免这种情况我该怎么办

请帮助我.

Hi,

In my windows application.I have one Master page It contains Tool Strip Menu Item.
Master Page contains no of Modules inside Tool Strip Menu Item.

My problem is When Iam opening One form to another form in master page between that Gap

It is blinking and also Form Upper Border displayed in blue color just one second or half second. It is very bad look for entire Application. To Avoid This What Can I do

Please Help me.

推荐答案

可以通过设置轻拂表单的以下属性来避免闪烁
DoubleBuffered = true;

如果这样做不起作用,请对所有表单控件都进行双重缓冲,这是链接如何在表单上将缓冲网络控件加倍 [ ^ ]
You can avoid flickering by setting following property of a form which is flicked
DoubleBuffered = true;

if this not works make doublebuffered to all form controls, here is link how to double buffer net controls on a form[^]


这篇关于如何避免Windows应用程序工具条菜单项中的窗体边框闪烁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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