Click here to Skip to main content
15,898,371 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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. :-)
Posted
Updated 7-Jul-12 9:26am
v3
Comments
[no name] 7-Jul-12 15:41pm    
Okay.... so do it. What sort of "guidance" are you wanting? How to find the progress bar in the toolbox? How to put it on a form? How to set the range?
saj_21 7-Jul-12 20:18pm    
no that i know. But i haven't used threads in my application so, am little bit confused to use progress bar without using threads. :-(

1 solution

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
 
Share this answer
 
Comments
saj_21 7-Jul-12 20:24pm    
thanks Mario Majčica. I will try above solution :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900