WPF
Application.Current.Dispatcher.Invoke(new Action(() => { tbUser.Text = "Branit"; }));
Winform
this.Invoke(new Action(() => { tbUser.Text = "Branit"; }));