public uctrlBusyDisplay() { InitializeComponent(); Thread t = new Thread(new ThreadStart(DoIt)); t.SetApartmentState(ApartmentState.STA); t.Start(); } private void DoIt() { WebBrowser wb = new WebBrowser(); wb.Location = new Point(20, 10); wb.Navigate("www.google.co.uk"); this.Controls.Add(wb); }
Action a = () => { Controls.Add(wb); }; Invoke(a);