Friday 15 April 2011

Here is a handy chunk of code for cross thread updates to UI.

public void MyUIMethodCalledFromWorkerThread(string message)
{
BeginInvoke((Action)delegate
{
someControl.Text = message;
});
}

No comments:

Post a Comment