Simple Web Browser
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
1 post
Page 1 of 1
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
1 post
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023