Cross-thread Winforms control editing [duplicate]

You will need to use Control.Invoke method like this:

textbox1.Invoke((MethodInvoker)(() =>
   {
     textbox1.Text="some text";
   }));

Check this article too: Threading in UIs

Leave a Comment