Hi,
I need some help and i've been googling all night long and cannot find any decent examples or help on this matter
im using C#
I have a form (Main form) and several class files.
One of these class/method file are executed on a seperate thread.
Now, on the main form there is a label, which shows the user whats happening (like a status label)
From the thread created, it will update the status text on the form.
I would like to know how to make use of eventhandler/delegates (control.invoke) so that the label status can be updated safely from the thread method that wishes to update it.
please, any help is most welcome but do give clear examples so I can grasp the idea of this.
more about the classes:
the Main Form has a method called "UIUpdateStatus(string theMessage)" which updates the form's label with the message in the params.
That method is public so anyone can call it.
Thanks!
I need some help and i've been googling all night long and cannot find any decent examples or help on this matter
im using C#
I have a form (Main form) and several class files.
One of these class/method file are executed on a seperate thread.
Now, on the main form there is a label, which shows the user whats happening (like a status label)
From the thread created, it will update the status text on the form.
I would like to know how to make use of eventhandler/delegates (control.invoke) so that the label status can be updated safely from the thread method that wishes to update it.
please, any help is most welcome but do give clear examples so I can grasp the idea of this.
more about the classes:
the Main Form has a method called "UIUpdateStatus(string theMessage)" which updates the form's label with the message in the params.
That method is public so anyone can call it.
Thanks!
Last edited: