创建进度条并在一段时间后显示结果C# [英] Create progress bar and after some time showing result C#

查看:86
本文介绍了创建进度条并在一段时间后显示结果C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在点击开始后创建一个开始按钮,进度条将会出现,然后经过一段时间后我想显示一些文本结果作为输出。

I want to create a from where I have a button like "Start" after click start the progress bar will come, then after some time I want to show some text result as a output.


推荐答案

假设它是Wins形式,学习各个部分,然后将它们组合在一起:

1. 进度条 [ ^ ]

2.但按钮 [ ^ ]吨

3. 消息框 [ ^ ]
Assuming it is for Wins form, learn the individual parts, then put them together:
1. Progress bar[^]
2. ButButton[^]ton
3. Message box[^]


1。使用开始按钮创建一个WinFrom / WPF窗口。

2.单击开始按钮使用progresswindow.ShowDialog()创建另一个带进度条的窗口,名为进度窗口。

3。在ProgressWindow的加载上开始操作并更新进度条的进度值。

4.完成后关闭progresswindow并显示带有所需消息的messageBox。
1. Create a WinFrom/WPF window with start button.
2. OnClick of Start button create another window with progress bar called progress window using progresswindow.ShowDialog().
3. start operation on the load of ProgressWindow and update progress value of progress bar.
4. once completed close the progresswindow and show messageBox with desired message.


这篇关于创建进度条并在一段时间后显示结果C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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