How to Create Web Browser Using VB.Net 2012
Submitted by princenathan on Tuesday, August 6, 2013 - 22:47.
The Web Browser control in VB.NET 2012 allows you to host Web pages and other web browser enabled documents in your Windows Forms applications. You can add browser control in your VB.Net 2012 projects and it displays the web pages like normal commercial web browsers . You can use the Browser control to add your existing Web based controls to your Windows Forms client applications.
The Web Browser control has several properties, methods, and events related to navigation. The following VB.Net 2012 program displays a web page in browser window and also you can retrieve the source code of the same web page with another button click.
Source Code:
- Public Class Form1
- Private Sub ToolStripTextBox1_KeyUp(sender As Object, e As KeyEventArgs) Handles ToolStripTextBox1.KeyUp
- 'enter
- If e.KeyCode = Keys.Enter Then
- WebBrowser1.Navigate(ToolStripTextBox1.Text)
- End If
- End Sub
- End Class
Add new comment
- 274 views