if (listBox1.InvokeRequired) { listBox = new StringBuilder(this.listBox1.Text); }
This is code in C # which, when executed, causes an invalid cross-thread execution error for listBox1, which is a list in my form. Maybe guys please tell me why? I also use the invokeRequired method and do not change the contents of the list.
Avik source share