WPF
Application.Current.Dispatcher.Invoke(new Action(() => { tbUser.Text = "Branit"; }));
Winform
this.Invoke(new Action(() => { tbUser.Text = "Branit"; }));
WPF
Application.Current.Dispatcher.Invoke(new Action(() => { tbUser.Text = "Branit"; }));
Winform
this.Invoke(new Action(() => { tbUser.Text = "Branit"; }));
转载于:https://www.cnblogs.com/buker/p/5394117.html