"<ctacke/>" <ctacke_AT_OpenNETCF_com> skrev i melding
news:(E-Mail Removed)...
>
> Absolutely not. It's not safe in the CF or full framework. Use
> Control.Invoke to marshal a call back to the primary UI thread and update
> from there.
Ok, I see
I understand I need to do something like this from MyThread :
frmMain.Invoke(new Eventhandler(aGuiUpdateMethodeInfrmMain);
right?
If this is correct is there a more 'dynamic' way to do the call. I do not
like the idea tha MyThread needs to know both frmMain and
aGuiUpdateMethodeInfrmMain.
Could mabe MyThread take a inparameter ('methode to invkoke'?) when
constructed ? Tried this, but with no luck so far.
regards,
Leo