添加进度条(加载表单时) [英] Adding a Progressbar (while loading a Form)

查看:111
本文介绍了添加进度条(加载表单时)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的MDI父表单中,我选择通过MenuClick打开一个Child ...我想要一个

progressabar来显示和进展所有新孩子的加载

Form ..然后当它完成时我希望进度条消失,并且

的孩子就这样出现了。


有时会出现''在这些子窗口中加载很多,我觉得我想要向用户显示某些内容正在正在进行。而不只是让他们等待和

认为应用程序挂起,


/ Lars

In my MDI parent form I choose to open a Child thru a MenuClick... I want a
progressabar to show up and progress allthru the loading of the new Child
Form.. and then when it''s done I want the progressbar to disapear and the
child so show up.

Sometimes there''s a lot to load in these child windows and I feel I want to
show the user that something is "going on" and not just have them wait and
think the application hung,

/Lars

推荐答案

嗨Lars,


对于进度条,您需要持续时间。当我读到您的

消息时,我认为您没有。


状态栏中的一个简单的红色标志(准备就绪后变为绿色)

程序可能具有相同的效果,因为用户知道这些东西从IE浏览器中获得



但是你也可以创建一个来自你的加载活动

dim frm as new form

添加到某些东西而不是

frm.show

并在加载事件结束时关闭

frm.close


我希望这能给出一些想法吗?


Cor
Hi Lars,

For a progressbar you need the duration of the process. When I read your
message I think you do not have that.

A simple red sign (which turn to green when ready) in the statusbar from the
program will probably have the same effect because users know those things
from IE.

However you can also just create a from in your load event as
dim frm as new form
Add to that frm some things and than
frm.show
and close that at the end of the load event with
frm.close

I hope this gives some idea''s?

Cor


*" Lars Netzel"百分比抑制率no_spam_please] LA ********* @ qlogic.se> scripsit:
* "Lars Netzel" <[no_spam_please]la*********@qlogic.se> scripsit:
在我的MDI父表单中,我选择通过MenuClick打开一个Child ...我想要一个
progressabar来显示和进一步加载新的Child
Form ..然后当它完成时我希望进度条消失,并且
孩子如此出现。

有时在这些子窗口中加载很多东西我觉得我想向用户显示某些内容正在正在进行。而不只是让他们等待并认为应用程序挂起,
In my MDI parent form I choose to open a Child thru a MenuClick... I want a
progressabar to show up and progress allthru the loading of the new Child
Form.. and then when it''s done I want the progressbar to disapear and the
child so show up.

Sometimes there''s a lot to load in these child windows and I feel I want to
show the user that something is "going on" and not just have them wait and
think the application hung,




应该在哪里显示进度条?


-

Herfried K. Wagner [MVP]

< URL:http://dotnet.mvps.org/>



Where should the progressbar be shown?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


作为我猜的所有内容的分离窗口!


/ Lars


" Herfried K. Wagner [MVP] QUOT; <喜*************** @ gmx.at> skrev i meddelandet

新闻:2g *********** @ uni-berlin.de ...
as a separat window on top of everything I guess!

/Lars

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> skrev i meddelandet
news:2g***********@uni-berlin.de...
*" Lars Netzel"百分比抑制率no_spam_please] LA ********* @ qlogic.se> scripsit:
* "Lars Netzel" <[no_spam_please]la*********@qlogic.se> scripsit:
在我的MDI父表单中,我选择通过MenuClick打开一个Child ... I
想要一个progressabar来显示和进展全新加载$ ​​b $ b儿童表格..然后当它完成时,我希望进度条消失并且孩子如此出现


有时在这些子窗口中加载很多我觉得我想要
来向用户显示某些内容正在正在进行而不只是让他们等待
并认为应用程序挂起,
In my MDI parent form I choose to open a Child thru a MenuClick... I want a progressabar to show up and progress allthru the loading of the new Child Form.. and then when it''s done I want the progressbar to disapear and the child so show up.

Sometimes there''s a lot to load in these child windows and I feel I want to show the user that something is "going on" and not just have them wait and think the application hung,



进度条应该放在哪里?

-
Herfried K. Wagner [MVP]
< URL:http://dotnet.mvps.org/>



Where should the progressbar be shown?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>



这篇关于添加进度条(加载表单时)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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