在加载对话框表单时

在加载对话框表单时

本文介绍了显示“加载屏幕";在加载对话框表单时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我想在主窗体上打开dilaog窗体时显示一个带有正在加载的文本的小面板.例如;我的应用程序上有一个MainForm,还有一个用于编辑记录的DialogForm.当单击MainForm上的Edit按钮时,我将数据加载到DialogForm(对话框窗口)中.因此,加载此DialogForm的数据需要1-2秒.因此,我试图有条不紊地执行此过程.

1号我想禁用MainForm,
第二个>我想显示一个带有示例文本的小面板,例如"Loading ...",直到DialogForm打开.
第三>当DialogForm打开时,面板应该是不可见的,并且在DialogForm关闭之前,MainForm仍将处于禁用状态.

现在,有一些方法可以做到这一点(只需更改面板的visible-invisible属性,BackgroundWorker等).但是,我想应用最适当和合乎逻辑的方法来实现这一目标.我应该怎么做?你能举个例子吗?
BR

Hi all,
I want to show a little panel with a loading... text on it while opening a dilaog form on the main form. For example; there is a MainForm on my application and a DialogForm used for editing a record. When clicking Edit button on the MainForm, I load the data to the DialogForm (dialog window). So, there is 1-2 second to loading this DialogForm''s data. For this reason I have tried to do this process orderly;

1st > I want to disable the MainForm,
2nd > I want to show a little panel with a sample text like "Loading..." until the DialogForm opens.
3rd > When DialogForm opens, the panel should be invisible and the MainForm is still disabled until the DialogForm closed.

Now, there is some way to do this (by simply changing the panel''s visible-invisible property, BackgroundWorker, etc.). However, I want to apply the most appropriate and logical method to achieve that. How should I do this? Could you give an example please?
BR

推荐答案




这篇关于显示“加载屏幕";在加载对话框表单时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 12:12