How to create Web Browser in vb.net

Abstract


Create new windows application by selecting New project.Drag and drop the one text box and button control to form.Add the Browser control to form then double click on the button control to bring up button's click event then put the below code
[code]
WebBrowser1.Navigate(TextBox1.Text)
[/code]

Sample Source Code



[code]
Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Navigate(TextBox1.Text)
End Sub
End Class

[/code]

No comments:

Post a Comment

Plz Share your comments...