/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
delegate void updateLabelTextDelegate(string newText); private void updateLabelText(string newText) { if (lblMessage.InvokeRequired) //lblMessage UI ID { // this is worker thread } else { // this is UI thread lblMessage.Text = newText; } }