How to create a WebBrowser in Visual Studio (Vb.net)
June 5, 2016
To create a WebBrowser in Visual Studio (Vb.net) we will need the following components:
4- Buttons
-Set Text of Button1 “Navigate”
-Set Text of Button2 “Back”
-Set Text of Button3 “Forward”
-Set Text of Button4 “Refresh”
1- Textbox
1-WebBrowser
You will find all components in “Toolbox” , which is located in left side of Visual Studio.
How to change the text of button?
-Click to that button which you want to change text, and change it from the properties menu.
Properties menu is located in the right side of visual studio.
For example : in this photo I’m changing text of button1 , which is the “Navigate” Button

After adding all components ,the form will look like as is in photo

Now we should add the function to each button, to do that simply follow steps below:
1.Double click to "Navigate" button and add this code :
2.Double click to “Back” button and add this code:
3.Double click to “Forward” button and add this code:
4.Double click to “Refresh” button and add this code:
5. Click "Start" to run the software

WebBrowser in Action....

Happy Coding
4- Buttons
-Set Text of Button1 “Navigate”
-Set Text of Button2 “Back”
-Set Text of Button3 “Forward”
-Set Text of Button4 “Refresh”
1- Textbox
1-WebBrowser
You will find all components in “Toolbox” , which is located in left side of Visual Studio.
How to change the text of button?
-Click to that button which you want to change text, and change it from the properties menu.
Properties menu is located in the right side of visual studio.
For example : in this photo I’m changing text of button1 , which is the “Navigate” Button

After adding all components ,the form will look like as is in photo

Now we should add the function to each button, to do that simply follow steps below:
1.Double click to "Navigate" button and add this code :
WebBrowser1.Navigate(TextBox1.Text)
2.Double click to “Back” button and add this code:
WebBrowser1.GoBack()
3.Double click to “Forward” button and add this code:
WebBrowser1.GoForward()
4.Double click to “Refresh” button and add this code:
WebBrowser1.Refresh()
5. Click "Start" to run the software

WebBrowser in Action....

Happy Coding

Comments 2
June 5, 2016
WOW this is interesting tutorial and thanks for sharing it. I didn't use visual studio for long time so i see on your screenshots, a lot of improvements are made for easier programming. Great. Maybe i get it again for me to play with because ideas never stop coming to my mind
WOW this is interesting tutorial and thanks for sharing it. I didn't use [b]visual studio[/b] for long time so i see on your screenshots, a lot of improvements are made for easier programming. Great. Maybe i get it again for me to play with because ideas never stop coming to my mind :)
WOW this is interesting tutorial and thanks for sharing it. I didn't use [b]visual studio[/b] for long time so i see on your screenshots, a lot of improvements are made for easier programming. Great. Maybe i get it again for me to play with because ideas never stop coming to my mind :)Please login or sign up to leave a commentJoin
