[] Winform controls created on one thread can not be the parent control created on another thread

 public delegate void DummyDelegate();

panel1.Invoke((DummyDelegate)delegate() {
 panel1.Controls.Add(p);});

 

Guess you like

Origin blog.csdn.net/feelsyt/article/details/90707519