Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要显示进度条
在上传包含 100 条记录的 Excel 表时,在进度栏中上传 100 条中的 1 条
它应该增加
请参阅此文档,其中详细介绍了您可以使用 SqlBulkCopy 挂钩的事件,以在插入 X 行后报告进度。
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlbulkcopy.notifyafter.aspx
您可以使用此事件将ProgressBar.Value(整数 1-100)更新为当前进度。
ProgressBar.Value