admin 管理员组文章数量: 887021
2024年1月18日发(作者:jsp经过编译后将创建一个)
private void btnSinge_Click(object sender, EventArgs e) { if (threadObj != null && e) { (); } threadObj = new Thread(new ThreadStart(StartXX)); (); } private void StartXX() { nowPbar = 0; while (nowPbar < maxPbar) { nowPbar++; //(100); SetPbar(nowPbar); } } private void Form1_FormClosed(object sender, FormClosedEventArgs e) { if (e) { (); } }#region ///
///
// progressBar1 //
on = new (24, 65); = "progressBar1"; = new (236, 23); ex = 0; //
// textBox1 //
on = new (24, 20); = "textBox1"; = new (236, 20); ex = 1; //
// btnSinge //
on = new (167, 106); = "btnSinge"; = new (75, 23); ex = 3; = "开始"; ualStyleBackColor = true; += new andler(ge_Click); //
// Form1 //
aleDimensions = new (6F, 13F); aleMode = ; Size = new (292, 153); (ge); (x1); (ssBar1); = "Form1"; = "Form1"; osed += new osedEventHandler(1_FormClosed); Layout(false); mLayout(); } #endregion
版权声明:本文标题:C#多线程刷新进度条 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/free/1705575351h490630.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论