Creating A WebBrowser in VB2008/2010
Posted by saad alti
Start by creating a new project and call it Webbrower .
Then click OK.
Once your project has loaded, add:
1x split container, and set the Orientation to Horizontal.
Now add a webbrowser component to the lower panel.

Then add 4 buttons and a textbox to the upper panel:

*Double click the 'GO' button and add the following codes:
WebBrowser1.Navigate(TextBox1.Text)
*Go back to the design of form1 and double click the 'HOME' button on your form and add the following codes:
WebBrowser1.GoHome()
*Go back to the design of form1 and double click the 'FORWARD' button and add the following codes:
WebBrowser1.GoForward()
*Go back to the design and double click the 'BACK' button and add the following codes:
WebBrowser1.GoBack()
*And now go back to the design of your form and double click the webbrowser and add the following codes:
TextBox1.Text = WebBrowser1.Url.ToString()
Then add 4 buttons and a textbox to the upper panel:
*Double click the 'GO' button and add the following codes:
WebBrowser1.Navigate(TextBox1.Text)
*Go back to the design of form1 and double click the 'HOME' button on your form and add the following codes:
WebBrowser1.GoHome()
*Go back to the design of form1 and double click the 'FORWARD' button and add the following codes:
WebBrowser1.GoForward()
*Go back to the design and double click the 'BACK' button and add the following codes:
WebBrowser1.GoBack()
*And now go back to the design of your form and double click the webbrowser and add the following codes:
TextBox1.Text = WebBrowser1.Url.ToString()
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
Visual Studio
. Follow any responses to this post through RSS. You can leave a response, or trackback from your own site.