Click here to Skip to main content
13,253,960 members (65,818 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hello friends,

I am developing 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 7-Jul-12 10:24am
Updated 7-Jul-12 10:26am
Wes Aday 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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Check this example here:[^]

However the best will be to adopt a lazy load for your combo or optimize your sql query.

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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171114.1 | Last Updated 7 Jul 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100