I am new to progress bar, just need help, ok lets say this, i wish it was easy as:
public void loadingbar()
{
progressbar.increment(1);
}
public void loadingdata()
{
progressbar.maximum = 100;
blah blah add to list
foreach this and that blah blah //i know most of this doesnt work but bare with me its part of my //explanation
loadingbar();
}
so i wish it was that easy, let me explain now, is there way to have a progress bar keep track of the process that is happening within the method of loadingdata, such as start to finish, when the method starts, thats when the progress bar appears, and continues to increment by 1 until the last foreach whatever or anything within that method is done then the progress bar would show full bars and i could say in text... all done or something, any ideas on how to do that?
thanks
Edited by Roger, 03 April 2011 - 10:59 AM.
added code tags


Sign In
Create Account


Back to top









