In the general graphical interface in C #, only the same stream can be updated that was created if it is not the same stream as the InvokeRequired value, then true, otherwise it is false, if it is true, you call the same method again, but from GUI created on the same thread
you should use it as follows:
delegate void valueDelegate(string value); private void SetValue(string value) { if (someControl.InvokeRequired) { someControl.Invoke(new valueDelegate(SetValue),value); } else { someControl.Text = value; } }
Try this for more info.
How to update GUI from another thread in C #?
source share