Tuesday, March 11, 2014

Visual Basic .NET Tutorial 41 - How to use the WebBrowser control in Vis...





Public Class Form1

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        WebBrowser1.Navigate(TextBox1.Text)

    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        WebBrowser1.GoForward()

    End Sub

    Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
        WebBrowser1.GoBack()

    End Sub

    Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
        WebBrowser1.Refresh()

    End Sub

    Private Sub WebBrowser1_Navigated(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserNavigatedEventArgs) Handles WebBrowser1.Navigated
        TextBox1.Text = WebBrowser1.Url.ToString()


    End Sub
End Class










-----------------------------------------------

Using The WebBrowser Control As A Document Viewer

Question: How To Use WebBrowser Control - VB.NET

WebBrowser Control (VB.NET) new tab

visual studio 2010 - VB.NET WebBrowser control

How to Automate Web Browser using VB.NET

Opening A File Using Web Browser Control? - VB.NET

Force Webbrowser Control To Scroll Left/down - VB.NET

Creating A Web Browser In VB.Net - VB.NET Tutorials


No comments:

Post a Comment