Trying to get a thread to change form controls in Windows Mobile.
Throws an unsupported exception.
Does this mean it cant be done at all?
If not, how do I go about this? Forms are created in the Parent/Main thread then a thread is created to do some work in the background but I want to make it so the Background thread can update the form to show its completed…
You cannot access GUI items on a non-GUI thread. You will need to determine if an invocation is required to the GUI thread. For example (here’s some I made earlier):
Or
You can then set the enabled property (from my first example) using
ClassName.SetEnabledState(this, true);.