G
Guest
I guess it's my turn to ASK a question
Briefly my problem: I am developing a Windows app that has several User
Controls. On one of these controls, I am copying/processing some rather
large binary files, so have created a second thread to do the processing.
This thread is set to be the LOWEST priority. So far so good with all that.
HOWEVER, I am trying to provide some feedback to the user (the bane of our
existence!) via a progress bar. I was attempting to update the progress bar
via code in a timer's event. When I have the timer on the the same control
as the progress bar, the application reacts the same was as it did prior to
starting the second thread, that is, it locks up the UI until the copying is
complete, AND the progress bar never gets updated.
I have a Main user control that controls the activities of the other
controls, and that has a timer on it, so I thought I would use that timer
event instead. Same reaction. UI locks up until the copy function is
complete, and the progress bar never gets updated.
Any thoughts on how I can approach this? Suggestions on what I'm doing
wrong etc?
TIA
WhiteWizard
aka Gandalf
MCSD.NET, MCAD, MCT
Briefly my problem: I am developing a Windows app that has several User
Controls. On one of these controls, I am copying/processing some rather
large binary files, so have created a second thread to do the processing.
This thread is set to be the LOWEST priority. So far so good with all that.
HOWEVER, I am trying to provide some feedback to the user (the bane of our
existence!) via a progress bar. I was attempting to update the progress bar
via code in a timer's event. When I have the timer on the the same control
as the progress bar, the application reacts the same was as it did prior to
starting the second thread, that is, it locks up the UI until the copying is
complete, AND the progress bar never gets updated.
I have a Main user control that controls the activities of the other
controls, and that has a timer on it, so I thought I would use that timer
event instead. Same reaction. UI locks up until the copy function is
complete, and the progress bar never gets updated.
Any thoughts on how I can approach this? Suggestions on what I'm doing
wrong etc?
TIA
WhiteWizard
aka Gandalf
MCSD.NET, MCAD, MCT