C# winform progressbar +label显示进度
来源:互联网 发布:ipad1怎么下载软件 编辑:程序博客网 时间:2024/05/05 06:03
private void btnCount_Click(object sender, EventArgs e)
{
label1.Visible=true;
progressBar.Visible = true;
progressBar.Minimum = 0;
progressBar.Maximum = ds.Tables["表"].Rows.Count;
progressBar.BackColor = Color.Green;
for (int i = 0; i < ds.Tables["表"].Rows.Count; i++)
{
progressBar.Value++;
Application.DoEvents();
this.label1.Text = Convert.ToString(progressBar.Value);
}
}
或者
private void btnCount_Click(object sender, EventArgs e)
{
label1.Visible=true;
progressBar.Visible = true;
progressBar.Minimum = 0;
progressBar.Maximum = ds.Tables["表"].Rows.Count;
progressBar.BackColor = Color.Green;
for (int i = 0; i < ds.Tables["表"].Rows.Count; i++)
{
progressBar.Value++;
Application.DoEvents();
this.label1.Text = Convert.ToString(progressBar.Value);this.label1.Refresh();
}
}
- C# winform progressbar +label显示进度
- C# WinForm开发系列 - CheckBox/Button/Label/ProgressBar
- C# WinForm开发系列 - CheckBox/Button/Label/ProgressBar
- C# WinForm开发系列 - CheckBox/Button/Label/ProgressBar
- c# .net ProgressBar BackGroundWoker 连接数据库的进度显示
- c# progressBar进度条改变颜色及显示进度数字
- 在ProgressBar显示文本进度
- ProgressBar---进度圈的显示
- C# Label显示多行文本及换行(WinForm/WebForm)
- C# Label显示多行文本及换行(WinForm/WebForm)
- ProgressBar 实现自定义显示进度值
- FLEX进度条ProgressBar不显示进度
- WPF ProgressBar显示进度(一)
- WPF ProgressBar显示进度(二)
- WPF ProgressBar显示进度(三)
- WPF ProgressBar显示进度(四)
- WPF ProgressBar显示进度(五)
- WPF ProgressBar显示进度(六)
- 更换class文件引发的问题
- Ajax学习(二),通过XML与服务器进行交互
- 认识与应用声卡的“S/PDIF”接口
- [组件开发] 自定义ItemRenderer常遇到的警告unable to bind to property的解决办法
- 数据
- C# winform progressbar +label显示进度
- RedHat下VMware无法与宿主机通讯的问题
- Hadoop中shuffle阶段流程分析
- C#弹出打开资源对话框(OpenFileDialog)并读取Excel表格(office2007或office2010)
- ubuntu12.04装机后设置
- js常用功能备忘
- dede问答Analyse Table `` Error解决方法
- poj 1260 pearls
- 贝塞尔曲线原理以及在android中的应用