Progress bar not updating
Progress Changed = Event Count Log Lines Progress Changed; i Count Log Records.Run Worker Completed = Event Count Log Lines Run Worker Completed; i Count Log Records. Read))); I've tried wrapping the value setter line in a dispatcher.invoke delegate but that gives me a stack overflow(I shouldn't have to have a dispatcher.invoke line anyway as backgroundworker calls Progress Changed in the UI Thread, right? I have checked msdn and googled but I can't seem to find anyone else with this problem.In my activity, I have a button which starts the processing, when I press on it, the progress Bar does not update and after a while the operation is complete and I see the result of the processing (so the function is properly called and act as expected).The progress Bar is visible, it just does not update.During each loop, the macro copies and pastes data and formats it, then loops again after updating the progress bar.The progress bar works great and shows the progress of the macro if I step through the macro. I have made a very simple code to show it here, i have a button that should show a JDialog to check the progress status, i am using the invoke late to go through EDT and my loop isn't in the run method, so why isn't my bar updating ?
Do Work = Event Count Log Lines Do Work; i Count Log Records. They are asynchronous and in the case that you have they may not be updated at the exact time you need them. Maximum = j; int i; for (i = 0; i Hi Gal, The behavior that you are observing is due to our layouts.What is happening is I click the button and the progress bar stays at 0% until my time consuming (10 seconds) for loop is finished, and then the progress jumps to 100% Any help is appreciated, thanks in advance.I have a Progress Bar Window which has a progressbar and a cancel button on it which I use to report progress on file I/O.