progress bar

smriti

Regular
Joined
Jan 7, 2005
Messages
54
hi,

can any one tell me how to use progress bar
This bar should display when data is loaded from database in to datagrids.

Thanks
 
if you use de datagrid.datasource, datagrid.datamember, you dont need a progress bar, its take a instant to fill all the dg..
 
Rothariger said:
if you use de datagrid.datasource, datagrid.datamember, you dont need a progress bar, its take a instant to fill all the dg..


It depends where the data comes from. For example when the datasource is a datatable which is filled by the results of the web service method then it may take some time to fetch the results. In that case the progress bar is very useful for the user.
 
If you're loading NOT in a loop you can randomly place this in your code:

Code:
application.doevents
progressbar.value += 1

If you're loading in a loop and you know how many iterations you will do you can figure out what percent done you are and set the progressbar.value to = that percent.

If you don't know how many iterations there are..... Then I dunno..
 
Back
Top