G
Guest
Hi,
My Windows application has a time-consuming operation which I'd like to run
on a separate thread so that the UI can remain responsive.
I'm thinking of using the BackgroundWorker class and have referred to a
relevant MSDN article at:
http://msdn2.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx
However, I notice that "ProgressChangedEventArgs" of the
"backgroundWorker1_ProgressChanged" event handler only has a parameter
"ProgressPercentage". When I give progress updates I'd like to give more
information by, for example, displaying text in a text box (eg. "Found 3
pending customer orders"), instead of simply incrementing a progress bar. Now
how can I accomplish this?
ywb.
My Windows application has a time-consuming operation which I'd like to run
on a separate thread so that the UI can remain responsive.
I'm thinking of using the BackgroundWorker class and have referred to a
relevant MSDN article at:
http://msdn2.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx
However, I notice that "ProgressChangedEventArgs" of the
"backgroundWorker1_ProgressChanged" event handler only has a parameter
"ProgressPercentage". When I give progress updates I'd like to give more
information by, for example, displaying text in a text box (eg. "Found 3
pending customer orders"), instead of simply incrementing a progress bar. Now
how can I accomplish this?
ywb.