Cross-thread operation not valid: Control ‘xxxxxx’ accessed from a thread other than the thread it was created on.

To solve this problem that occurs when you are trying to access a form control from another thread, use MethodInvoker.

this.Invoke(new MethodInvoker(delegate
{
    Textbox1.AppendText("* test 1 2 3rn");
}));
Categories: C# Tags: , , , , ,
%d bloggers like this: