Updating ui from another thread c
The thread creation part is the same as any other threading problem, and we've addressed that before.The interesting bit is going the other way - invoking a method on the UI thread in order to update the UI.
A thread may be in any state when the switch to the next thread occurs.
If your code is running in the UI thread, that means no other code is running in that thread.
That means you won't receive events, your controls won't be repainted, etc. You can execute long-running code and periodically call , and this is the natural thing for many VB programmers to wish to do - but I'd advise against it.
The current trend in CPU design is to have several cores.
A typical single-threaded application can make use of only one core.