Click here to Skip to main content
13,509,265 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi everybody

I want develop a Windows form application as web browser.
I use from bellow code:

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();

But I have an error.
this code only create a request while most of web site have many Url therefore I must create a request for any Url in website.

How I can load whole of web site files and direction???

Please help me

Thank a lot
Posted 12-Feb-13 1:05am
Updated 12-Feb-13 1:40am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Hi every body

I solved my problem by bellow code:

private WebBrowser GetCurrentBrowser()
    return (WebBrowser)TabControl.SelectedTab.Controls[0];

private void GoPage()

Thanks a lot

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180417.1 | Last Updated 13 Feb 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100