Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

 

How can i use a loaderbar while my program is reading a query from a database, or while inserting query's, or while doing a number of actions?

 

Or while a listbox is filling itself enc.

Posted
The best ways of doing this are specific to what is happening but in general, you need a progress bar and a way of calculating how far through a process, the program is. For example... say you were going to load a large file, you could get the number of lines or something, devide 100 by that number, and then for each line or whatever add the result to the value of the progress bar. That sounded a bit heavy didnt it!? any problems, reply and i will try to explain myself a little better.
Chris
Posted

Yes i understand you.

 

So i need to create like bookmarks in my code? but then is the loader jumping i think. For example, i do like 4 query's, filling an array enc en doing some calculations, then i need to put in that code bookmarks that update the loader?

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...