his is a simple way to make a web brwoser in vb6.
1. go to the Project Menu -> Components
2. in the components find: Microsoft Internet Controls and check it and finish.
3.now click it and drag it to your form.(make it big becase that is used for the main browser.
4.name it : brows
5. now put 6 command buttons and name them cmdBack, cmdForward, cmdStop, and cmdGO,cmdMail,cmdFavorites.
6. Caption the first one Back, the second one Forward, the 3rd one Stop, the 4rth one Go, the 5th one Mail and the 6th one Favorites
7.now put a text box in the form and make it look like this:
http://img293.imageshack.us/my.php?image=form10bt.jpg
8.now lets get coding.
first select Back and double click it so you will code it.
now you should see
Private Sub cmdBack_Click()
End Sub
now in the middle fill it in with:
Brows.Refresh
so it will look like:
Private Sub cmdBack_Click()
Brows.Refresh
End Sub
then click the Forward command and write inside:
Brows.Forward
now choose the Stop Button and put in:
Brows.Stop
then for Mail put in:
WebBrowser1.Navigate "http://www.hotmail.com"
For Favorites put in:
Text1.AddItem Text1.Text
now for GO put in:
brows.Navigate Text1
and for the textbox code put in:
If KeyAscii = 13 Then
cmdGo_Click
End If
and you are done!
tutorial made by : me