This tutorial teaches you how to make a basic web browser in VB.NET 2008. This has mostly the most basic features and takes advantage of the Visual part of Visual Basic!

Okay today I will be showing you how to make an okay web browser in Visual Basic 2008. We are going to take advantage of the Visual part of Visual Basic. There is some scripting involved but not much! Also very simple commands are useful all of the time in your Visual Basic career.
We are going to make us a new Windows Project from the “New Project” menu. This can be achieved by going to File-> New Project, or re-starting or starting Visual Basic 2008.
Resize your Form to where it is rather large. Doesn’t have to be too big as I am also going to teach you how to resize your form easily without any coding.
Out of your ‘Toolbox’ grab the nifty Web Browser control and drag it onto your form. It will automatically dock it to where it fills all of the form, press the arrow up at the right, and press “Undock in Parent Container.” Now you have an easy control web browser, resize it so it takes up about the same amount of space as the web browser you are viewing this tutorial in right now. We are going to add controls at the top like your web browser, some preffer to use ToolStrips but I find to take the more fancy look instead.
Grab us some buttons we will need a button for:
- Back
- Forward
- Refresh
- Stop
- Go
- Search
We also need two combo boxes for:
- Search
- Address Bar
So after dragging those onto the form you have a cool looking web browser. After rearranging those controls to your liking we can start working on the coding part of our project, I will just give them to you instead of doing some strange things.
GO
Code: WebBrowser1.Navigate(ComboBox1.Text)
Search
Code: WebBrowser1.Navigate(”http://google.com/search?q=” & ComboBox2.Text)
Back
Code: WebBrowser1.GoBack
Forward
Code: WebBrowser1.GoForward
Refresh
Code: WebBrowser1.Refresh
Stop
Code: WebBrowser1.Stop
Thats all I can say thanks guys










Leave Your Response