Quantcast
Channel: Setting a ToolStripLabel in a thread-safe manner - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Setting a ToolStripLabel in a thread-safe manner

$
0
0

I have a ToolStripLabel that needs to have its Text property updated from an event handler on a separate thread. Normally with a regular Label I've been using the InvokeRequired property and invoking a delegate to do the work if InvokeRequired returns true. The trouble is that ToolStripLabel doesn't have this property. What is the cleanest way to get this text updated in a thread-safe manner?


Viewing all articles
Browse latest Browse all 2

Trending Articles



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