Windows窗体中的Prgresbar [英] Prgresbar in windows forms
本文介绍了Windows窗体中的Prgresbar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友,
我正在开发一个.net Windows应用程序,在其中单击一个按钮便可以将所有数据库名称加载到一个组合框中.
但是,当我单击按钮时,需要1到2分钟的时间才能在组合框中加载数据库名称,因此,用户必须等待那么长时间.
现在,我想显示此操作的进度条.
谁能告诉我同样的话.
提前谢谢.
Shilesh J. :-)
Hello friends,
I am developing an.net windows application in which on click of a button i use to load all database names in one combo box.
But when i click on a button it takes 1 to 2 minutes time to load database names in combobox so, user has to wait for that much time.
Now i want to show a progress bar for this operation.
Can anybody tell guide me for same.
Thanks in advance.
Shilesh j. :-)
推荐答案
在此处检查此示例:
http://www.dotnetperls.com/progressbar [
Check this example here:
http://www.dotnetperls.com/progressbar[^]
However the best will be to adopt a lazy load for your combo or optimize your sql query.
Cheers
这篇关于Windows窗体中的Prgresbar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文