如何在执行查询后创建进度条 [英] How Can Make progress bar After Execute Query
本文介绍了如何在执行查询后创建进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此我的代码:
This My Code:
SqlCommand cmd2 = new SqlCommand("InsertCountCode", con2);
cmd2.CommandType = System.Data.CommandType.StoredProcedure;
cmd2.Parameters.AddWithValue("@count", txtStart.Text);
cmd2.Parameters.AddWithValue("@po", TxtPo.Text);
cmd2.Parameters.AddWithValue("@maxcounter", TxtMax.Text);
cmd2.Parameters.AddWithValue("@Style", comboStyle.Text);
con2.Open();
cmd2.ExecuteNonQuery();
一段时间此代码需要1分钟
或两分钟
如何在Sql中插入数据后完成进度条
依赖完成执行查询
Some Time This Code Takes 1 Minute
Or Tow Minute
How Can Complete progress bar after Insert Data In Sql
Depend Finish Execute Query
推荐答案
检查以下文章并在您的项目中实施。
http://www.aspdotnet-suresh.com/2010/12/how-to-use-progressbar-control-in.html [ ^ ]
http://www.dotnetperls.com/progressbar [ ^ ]
Check the following articles and implement in your project.
http://www.aspdotnet-suresh.com/2010/12/how-to-use-progressbar-control-in.html[^]
http://www.dotnetperls.com/progressbar[^]
这篇关于如何在执行查询后创建进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文