---
title: "WebBrowser Control in VB.Net"  
description: "The web browser Control in VB.NetThe WebBrowser Control Enables to navigate Web pages inside your form. Navigate method of WebBrowser Control - Load"  
author: "Pushpendra Singh"  
published: 2010-12-12  
updated: 2020-03-04  
canonical: https://www.mindstick.com/articles/326/webbrowser-control-in-vb-dot-net  
category: "vb.net"  
tags: ["vb.net"]  
reading_time: 2 minutes  

---

# WebBrowser Control in VB.Net

## The web browser Control in VB.Net

The WebBrowser Control Enables to navigate [Web pages](https://answers.mindstick.com/qa/95530/how-do-i-fix-safari-not-loading-web-pages) inside your form. Navigate method of WebBrowser Control - Loads the [document](https://www.mindstick.com/articles/328642/what-to-consider-while-choosing-a-software-documentation-tool) into the WebBrowser control.\

## How to use WebBrowser control

[Drag and drop](https://www.mindstick.com/forum/454/how-to-drag-and-drop-multiple-image-from-one-canvas-to-onther-canvas-in-html5) WebBrowser Control from toolbox on [window Form](https://www.mindstick.com/forum/527/how-to-pass-datagridview-s-cells-value-to-another-window-form).

![WebBrowser Control in VB.Net](https://www.mindstick.com/mindstickarticle/c5322bb6-350f-488a-82bd-6a670d27ea43/images/3fe6c93c-3456-4a40-9ebe-21c12967f33c.png)

## Designing GUI

Now I add a label, TextBox, and a button.

![WebBrowser Control in VB.Net](https://www.mindstick.com/mindstickarticle/c5322bb6-350f-488a-82bd-6a670d27ea43/images/d3eaf96d-9bbf-4d2e-9fd3-66968fddd18c.png)

## Code:

Write the below code in a [button click](https://www.mindstick.com/forum/568/check-condion-before-post-page-on-button-click-in-jquery-or-javascript).

```
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click WebBrowser1.Navigate(TextBox1.Text) 'The Navigate method of browser control views a page in the viewer.End Sub
```

**Run the project**

![WebBrowser Control in VB.Net](https://www.mindstick.com/mindstickarticle/c5322bb6-350f-488a-82bd-6a670d27ea43/images/45f2fee2-bd51-432b-a8e8-b581c4aa08b5.png)

When you enter URL address in textbox and click the Go button then [click event](https://www.mindstick.com/forum/424/how-to-call-form_paint-event-on-button-click-event) will fire and navigate method will [open a website which URL](https://www.mindstick.com/Articles/65/how-to-change-background-color-of-tab-control-in-c-sharp) address is given in TextBox.

![WebBrowser Control in VB.Net](https://www.mindstick.com/mindstickarticle/c5322bb6-350f-488a-82bd-6a670d27ea43/images/ba3cc14c-d7d2-4305-8d8f-17095a4c0ba8.png)

**WebBrowser [Properties](https://yourviews.mindstick.com/view/81845/now-it-s-possible-to-predict-properties-of-any-molecule)**

**URL [property](https://www.mindstick.com/articles/198559/an-ownership-of-property-in-hua-hin):** Gets or sets the URL of the current [Web page](https://answers.mindstick.com/qa/92898/how-to-create-a-web-page-using-bootstrap-4). Setting this property navigates the control to the new URL.

**AllowNavigation:**Gets or sets a value indicating whether the control can navigate to another page after its initial page has been loaded.

**TabStop:** Gets or sets a value indicating whether the user can give the focus to this control using the TAB key.

---

Original Source: https://www.mindstick.com/articles/326/webbrowser-control-in-vb-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
