WebRequest request = WebRequest.Create(this.Url.Text); WebResponse response = request.GetResponse(); Stream stream = response.GetResponseStream(); StreamReader reader = new StreamReader(stream); this.WebBrowser.DocumentText = reader.ReadToEnd(); reader.Close();
private WebBrowser GetCurrentBrowser() { return (WebBrowser)TabControl.SelectedTab.Controls[0]; } private void GoPage() { GetCurrentBrowser().Navigate(UrlTextBox.Text); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)