2015년 9월 21일 월요일

[ C# ] 다른 쓰레드에서 화면 업데이트 시키기

다른쓰레드에서 화면 업데이트 시키기
///...blah blah updating files
string newText = "abc"; // running on worker thread
this.Invoke((MethodInvoker)delegate {
    someLabel.Text = newText; // runs on UI thread
});

///...blah blah more updating files

댓글 없음:

댓글 쓰기