How To Make A Very Simple Web Browser In Visual Basic

First add 5 buttons name them

Back
Forward
Refresh
Stop
Go

then add 1 textbox and 1 webbrowser

Now drag the webbrowser to the middle and expand it a little. Then line up the button in this order
                                                     ___________________
Back   Forward    Refresh   Stop  |___________________|  Go

Now double click back and add this code

Webbrowser1.GoBack

Now double click forward and add this code

Webbrowser1.GoForward

Now double click refresh add and this code

Webbrowser1.Refresh

Now Double Click Go and add this code

Webbrowser1.Navigate(Textbox1.Text)

Now if you start the app it should work!

Post a Comment

Note: Only a member of this blog may post a comment.