在C#的WinForms进度指示器 [英] Progress indicator in C# Winforms
问题描述
我已经用Windows窗体C#的一些基本应用。
I have created some basic applications using windows forms C#.
我想实现的是,我有一些任务发生在函数内部。在执行这个任务,我需要用文字来显示一个消息框(没有按钮)配置...。我还需要眨眼这个文本。我该怎么做?
What I am trying to achieve is that I have some task taking place inside a function. While executing that task I need to display a message box (with no buttons) with the text "Configuring...". I also need to blink this text. How can I do that?
我是否需要有另一种形式呢?完成此任务后这种形式需要被隐藏或关闭?
Do I need to have another form for this? After completing this task this form needs to be hidden or closed?
我GOOGLE了这一点,但看不出一个答案,可能是因为我在谷歌不清的问题。
I have googled this but couldn't see an answer, may be because of my unclear question in google.
推荐答案
我会用一个ProgresBar。因此,你需要做的工作在后台工作。我的意思是,你可以在这里找到一个例子:
I would use a ProgresBar. Therefore you need to do your work in a background worker. An example what I mean you can find here:
的http://计算器.COM / A /2243584分之12127025
如果您想对进度一些文字,您需要创建自定义的进度。一个完整的样品,请访问:
If you want to have some Text on the ProgressBar you need to create your custom ProgressBar. A complete sample is available here:
http://stackoverflow.com/ A /二百二十四万三千五百八十四分之三百五十二万九千九百四十五
这篇关于在C#的WinForms进度指示器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!