C#进度栏与SQL Server数据检索 [英] C# Progress bar with sql server data retrival

查看:78
本文介绍了C#进度栏与SQL Server数据检索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我想用进度条显示从sql server到前端的数据检索.那么将如何完成.
在此先感谢

hi guys , i want to show the data retrival from sql server to my front end with an progress bar . so how it will be done.
thank in advance

推荐答案

嘿!
您将能够开发类似的东西,但是我建议这样做!您将被逐一检索记录.这样做的确很糟糕!

或者,您可以创建一个过程来检索数据,并使用另一个Thread来检索数据.同时,您显示ProgressBar,并且Style属性设置为选取框

进度条不会指示任何进度,但至少会向用户提供一些反馈,表明您的应用程序正在某事"上工作.

祝你好运,

爱德华
Hey there!

You will be able to develop something like that, but I do not recommend doing so! You will beed to retrieve the records one by one. Doing so performs really bad!

Alternatively you may create a procedure that retrieves the data and use a different Thread to retrieve the data. In the mean time you display a ProgressBar with the Style proprety set to Marquee

The progressbar does not indicate any progress, but at least gives the user some feedback that your application is working on ''something''.

Good luck,

Eduard


这篇关于C#进度栏与SQL Server数据检索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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