M
Michael Billard
The rules say that when you have a thread that wants to
modify a control on the UI thread, you need to do so on
the UI thread itself. On the desktop, you can use
Control.BeginInvoke. On the Compact Framework,
BeginInvoke does not exist, and you have to use
Control.Invoke instead. Problem is, Control.Invoke blocks
the calling thread. I would like to do the equivalent to
Control.BeginInvoke on the .NET CF. Is this possible? The
closest I've done is used a timer control on the form,
and let the calling thread set a flag, then have the
timer look for the state of that flag. Thanks.
modify a control on the UI thread, you need to do so on
the UI thread itself. On the desktop, you can use
Control.BeginInvoke. On the Compact Framework,
BeginInvoke does not exist, and you have to use
Control.Invoke instead. Problem is, Control.Invoke blocks
the calling thread. I would like to do the equivalent to
Control.BeginInvoke on the .NET CF. Is this possible? The
closest I've done is used a timer control on the form,
and let the calling thread set a flag, then have the
timer look for the state of that flag. Thanks.