如何删除面板隐藏延迟 [英] How Do I Remove Delay On Panel Hiding

查看:62
本文介绍了如何删除面板隐藏延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



i有一个应用程序,使用它,需要登录。

登录页面进入面板,如果登录正确,面板将隐藏。

隐藏时,在面板下创建控件有延迟。

如何修复它?



谢谢

Hello,

i have an application that for use it, it's needed the login.
The login page is into a panel, and if the login is correct, the panel is going to hide.
On hiding, there is a delay on creating the controls under the panel.
How i can fix it?

Thanks

推荐答案

假设:



1.这是一个WinForms应用程序



2.在设计时所有主窗体中的控件都有其可见属性集到'真。



试试这个:



0.做隐藏登录面板并在运行时使其在Form Load EventHandler中可见:在设计时位置,可见面板用于首先在z顺序中登录(因此它在所有其他控件的顶部),并阻止(隐藏)所有其他控件的视图。



1.设置'主窗体的'DoubleBuffered属性'在设计时使用属性编辑器在表单中为true。



如果在登录时隐藏面板时不会改变渲染控件的延迟完成后:



1.如果您正在做任何涉及表格的更新/刷新/无效或登录面板下面的表格上的控件,在你的问题中添加详细信息。



2.如果你以任何方式修改了Program.cs文件,请在你的问题中描述。



3.如果您直接使用this.SetStyle或Control.SetStyle,请描述。
Assuming:

1. this is a WinForms application

2. at design-time all Controls in the Main Form have their visible property set to 'true.

Try this:

0. do not hide the log-in Panel and make it visible at run-time in the Form Load EventHandler: at design-time position the visible Panel used for log-in first in the z-order (so it's on top of all other Controls), and blocks the view of (hides) all other Controls.

1. set the 'DoubleBuffered Property of the Main Form to 'true in the Form at design-time using the Property Editor.

If that doesn't change the delay in rendering the Controls when you hide the Panel when log-in is complete then:

1. if you are doing anything involving Update/Refresh/Invalidate of the Form, or of Controls on the Form underneath the log-in Panel, add details of that to your question.

2. if you have modified the Program.cs file in any way, describe that in your question.

3. if you have made any direct use of this.SetStyle or Control.SetStyle, describe that.


这篇关于如何删除面板隐藏延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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