Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Windows .NET4
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. Smile | :)
Posted 7-Jul-12 9:24am
saj_211K
Edited 7-Jul-12 9:26am
v3
Comments
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
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Comments
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 405
1 Sergey Alexandrovich Kryukov 220
2 Maciej Los 195
3 Peter Leow 190
4 DamithSL 174


Advertise | Privacy | Mobile
Web04 | 2.8.140705.1 | Last Updated 7 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid