Click here to Skip to main content
11,634,622 members (66,816 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# Windows .NET4
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. Smile | :)
Posted 7-Jul-12 9:24am
Edited 7-Jul-12 9:26am
Wes Aday at 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 at 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 at 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
0 OriginalGriff 8,736
1 Sergey Alexandrovich Kryukov 8,359
2 Mika Wendelius 6,845
3 F-ES Sitecore 2,354
4 Suvendu Shekhar Giri 2,205

Advertise | Privacy | Mobile
Web01 | 2.8.150728.1 | Last Updated 7 Jul 2012
Copyright © CodeProject, 1999-2015
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