5 4 Creating a Simple Browser in Visual Basic.NET


Using Visual Basic.NET (in this instance 2005) in order to create a simple browser that basically hijacks functionality from internet explorer Here’s the code: Private Sub btnBack_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBack.Click WebBrowser1.GoBack() End Sub Private Sub btnFwd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFwd.Click WebBrowser1.GoForward() End Sub Private Sub btnHome_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnHome.Click WebBrowser1.GoHome() End Sub Private Sub btnRefresh_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRefresh.Click WebBrowser1.Refresh() End Sub Private Sub btnGo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGo.Click WebBrowser1.Navigate(txtUrl.Text) End Sub