// process member record and save // DoSomeProcess on member object in memory; SaveMember(); }
ProgressBarPanel.Visible = false;
I run the application but the progress bar doesn't move and the text doesn't display in the label. What am i doing wrong? Since i am looping through the data i shouldnt need a background worker should I?
I tried replacing my code as shown in your reply but the progress bar never gets refreshed during the entire time it is displayed. The label text is not shown and the progress bar remains at 0% during the entire process. The process takes about 2 minutes to room. Its like the UI is not getting control back once the loop starts.
WGWilliam GowerJune 24, 2014 02:39 PM UTC
After running a few tests and stepping through the code I can confirm the problem is caused by the UI not getting back control during the processing. In my loop, I am just processing a record at a time and then saving it. I am using Devforce IdeaBlade 2012 for my EF tool. I am not sure why the UI is not getting back control. I did notice that at the every end of the processing for a brief instance the progress bar gets 1 block colored says 1% and then vanishes due to the Visible = false statement being executed. Do I need to run the displaying and refreshing of the progress bar in another thread eg. BackgroundWorker. If I do how would i do that?
SKSenthil Kumaran Rajan Syncfusion Team June 25, 2014 01:38 PM UTC
Thanks for your update,
We would like to let you know that we have prepared a sample for your requirement of "ProgressBarAdv" and it is attached below.
Please let us know if you have any other concerns.