Can non-UI mappings be displayed on the screen?

Is it possible to display only the UI screen for display on the screen, or can other threads also do this?

+4
source share
3 answers

No, you can only access the user interface directly from the user interface thread, but you can march results from other threads, for example using Control.Invoke or control.BegineInvoke / EndInvoke

Mark this one out

+7
source

You can use the BeginInvoke() element of all GUI controls to change their property values ​​from background threads.
If you use a background worker, you can use the ReportProgress event, which is even easier.

+1
source

It also depends on using WinForms or WPF, in Winforms you use Control.Invoke, and in WPF you use the Dispatcher class. WPF has a more sophisticated thread interface manager

0
source

All Articles