More threading newb questions

  • Thread starter Thread starter Mike P
  • Start date Start date
M

Mike P

On the same subject of having a progress window running to keep the user
updated on the progress of a running process, once the process is
finished how do you inform the user of the results of the process in the
original form? I am trying to do this and I get the error 'cross-thread
operation not valid, Label accessed from thread other than that it was
created on'
 
See my previous example and the BeginInvoke line which updates the
Text of the form. Exactly the same, but with myLabel.Text instead of
f.Text.

Marc
 
I'm not sure where I would put this line in my code, I'm getting a bit
mixed up between different examples. Do you have a complete example of
a project in its simplest form where you are running a process on the
main form, and updating the user on another form?
 
I managed to use the BeginInvoke line successfully, don't really know
what I'm doing there but it seems to work!

Could you help with other thread I have posted called Threading 2?


Many thanks,

Mike
 
Back
Top