Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
if you use de datagrid.datasource' date=' datagrid.datamember, you dont need a progress bar, its take a instant to fill all the dg..[/quote']

 

 

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.

Posted

If you're loading NOT in a loop you can randomly place this in your 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..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...