Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
In C#.net
I am tring to update progressbar , text box
from thread. Please advice
Posted

Check this[^]. Other way is to use BackgroundWorker class.

 
Share this answer
 
Add this line
Control.CheckForIllegalCrossThreadCalls = false
For Example:
public Form1()
{
InitializeComponent();
Control.CheckForIllegalCrossThreadCalls = false;
}
 
Share this answer
 
Comments
Sandeep Mewara 12-Jan-11 3:33am    
What is this? Doesn't look like an answer to this question?


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900