Skip to main content

How to Create Web Browser Using VB.Net 2012

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:

  1. Public Class Form1
  3. Private Sub ToolStripTextBox1_KeyUp(sender As Object, e As KeyEventArgs) Handles ToolStripTextBox1.KeyUp
  4. 'enter
  5. If e.KeyCode = Keys.Enter Then
  6. WebBrowser1.Navigate(ToolStripTextBox1.Text)
  7. End If
  8. End Sub
  10. End Class

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Add new comment

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.