/// <summary> /// Sets the text for the specified control in multithreading circumstances. /// </summary> /// <param name="control"></param> /// <param name="text"></param> public static void SetWebBrowser(WebBrowser control, String text) { if (control != null) { if (control.InvokeRequired) { SetWebBrowserSafe scts = new SetWebBrowserSafe(SetWebBrowser); control.Invoke(scts, new Object[] { control, text }); } else { control.DocumentText = text; } } }