| Article: |
C# News Ticker Multithreaded Application | |
| Subject: | UI is updated on incorrect thread | |
| Date: | 2002-12-08 15:05:59 | |
| From: | richardb | |
|
Unfortunately, this article demonstrates how hard it is to write correct multithreaded code. You should only update Windows Forms controls on the thread that created them. The correct procedure is to check the control.InvokeRequired property and if it return true, to call control.Invoke or control.BeginInvoke to marshal the update onto the correct thread.
|
||
Women in Technology
Hear us Roar
