Simple Web Browser
Posted: Mon Sep 19, 2011 2:07 am
Step 1: Create a new windows form
Step 2: Add the following
Button 1 (Change the text too Back)
Button 2 (Change the text too forward)
Button 3 (Change the text too Home)
Button 4 (Change the text too Go)
Web browser
Textbox
Design it however you like then add the code!
Step 2: Add the following
Button 1 (Change the text too Back)
Button 2 (Change the text too forward)
Button 3 (Change the text too Home)
Button 4 (Change the text too Go)
Web browser
Textbox
Design it however you like then add the code!
Code: Select all
Public Class Form1
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
WebBrowser1.Navigate(TextBox1.Text)
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
WebBrowser1.GoHome()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.GoForward()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.GoBack()
End Sub
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
TextBox1.Text = WebBrowser1.Url.ToString()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class