This tutorial will teach you how to make a simple web browser using Microsoft Internet Controls.
Open up Visual Basic and select Standard EXE.
Next, go to Project -> Components. (Or you can Right click the toolbox and select Components.) A dialog box should appear.
Scroll down in the Dialog box to Microsoft HTML object Library and check the box next to it. Also put a check in the box next to Microsoft Internet Controls. Hit OK.
After you hit Ok you will see a little Earth appear in the Toolbox. Double Click it. Leave it named WebBrowser1. Make it bigger. I have mine set at 12975 for height and 15615 for width.
Now, add 6 Command Buttons. Name them cmdHome, cmdRefresh, cmdForward, cmdBack, cmdStop, and cmdGo. Also, change the captions to Home, Refresh, Forward, Back, Stop and Go.
Now add a combo box. Leave it's name as combo1. Change the caption to anything you wish.
Now it's time to add the codes.
Double click the Home command button and add the following code:
The Home button will take you to whatever your homepage is set as in Internet Explorer.
Now for the others...
Refresh:
Forward:
Back:
Stop:
Go:
WebBrowser1.Navigate Combo1
You can Also have it Navigate to any Webpage you wish when itis opened. To do this add:
Private Sub form_load()
WebBrowser1.Navigate ("www.urlhere.com")
End Sub
You can position these buttons wherever you like.
I hope you guys liked this very simple and easy to understand Tut on how to make a simple Web Browser. Please =Rep if it helped you.