Quantcast
Channel: cross-thread UI updating?
Viewing all articles
Browse latest Browse all 12

cross-thread UI updating?

$
0
0
Cross-Thread UI updating is bad and will throw exceptions if you violate a cross-thread action.  To workaround this, you need to invoke the control you wish to update.

if (somecontrol.InvokeRequired)
{
     somecontrol.Invoke( /* ... */ );
}
else
{
     // some code
}

Check out the Control.Invoke method on MSDN.

Viewing all articles
Browse latest Browse all 12

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>