This usually does the trick for me.Code:private void UpdateProgressBar(int iCount) { BeginInvoke((MethodInvoker)delegate() { // This runs on the UI thread! progressBar.Value = iCount; }); }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 8 of 8
Thread: BeginInvoke / Updating ControlsThreaded View
|
Click Here to Expand Forum to Full Width |