226 11

Thread safe update of textbox

Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
//thread safe component update private void log(string text) { /* * Thread-safe method to write things in the textbox */ if (InvokeRequired) { Invoke(new Action<string>(log), text); } else { tbLogging.Text += text + "\n"; } }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus