如何有一个加载Windows窗体的进度条? [英] How to have a progress bar for loading a windows Forms?

查看:150
本文介绍了如何有一个加载Windows窗体的进度条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即时开发使用Windows窗体的软件应用程序。

i需要一个启动窗口,用户在加载Windows窗体时无需执行任何操作,窗体需要更多时间看起来每个控件每次都加载并且看起来非常糟糕,所以我想给出一个开始进度条。并且当Windows控件被加载时,用户应该在他面前获得完整的表单,

也从一个表单转换到另一个表单,我想放入表单之间处理和加载新表单一个

请建议我解决方案

编辑/删除消息

i m Developing a Software application where the windows forms are used .
i want a starting Window where user don''t have to do anything as it loads the Windows Forms, the forms are taking more time than required so , it looks that each control loads each time and looks very bad, so i want to give a starting progress bar. and as the Windows controls are loaded , then user should get the full form in front of him,
also in transition from one form to another, i want to put in between the forms disposing and loading the new one
please suggest me solutions
Edit/Delete Message

推荐答案

有一个.NET进度条你可以使用它,它是一个非常基本的控件,你可以创建表单,所以transisiton形式不会是一个问题。你坚持的确切部分是什么?

你的问题有点模糊,如果你能多说一点,我们可以提供一些更相关的帮助......
there is a .NET progress bar which you could use, its a pretty basic control and you can create forms, so the transisiton forms wont be a problem. What is the exact part which you are stuck with?
Your question is a bit vague, if you could clarify a bit more, we could offer some more relevant help...


Cloud !!问题是我想将.Net的这个进度条放在两个表单之间转换。问题很简单,我只知道在计时器和刻度的帮助下运行进度条,我真正想要做的是,进度条应该根据Form加载而不是Timer来移动,那么我如何检查表单状态以及何时可以被用户使用。

i只想使表单可见时所有控件都被加载并且平均时间进度条运行,以通知用户他必须等待。

感谢您的回答!
Cloud!! the problem is i want to put this Progress Bar of .Net in between two forms transition.and problem is simple ,, i only know to run the Progress bar with the help of timer and ticks , what i actually want to do it, is that Progress bar should move according to the Form load instead of Timer , so how can i check whats the form state and when it is ready to be used by the User .
i want to make Form visible only when all controls are loaded and Mean time Progress Bar runs , to notify user that he have to wait.
thanks for answering!


嗯,你很可能必须计算总步数,将其设置为进度条的最大值,并在每一步之后增加进度条。
Well, you''re probably going to have to calculate the total amount of steps, set that as the max value for the progress bar, and after each step you do increment the progress bar.


这篇关于如何有一个加载Windows窗体的进度条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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