---
title: "FolderBrowserDialog Control in VB.Net"  
description: "Where the FolderBrowserDialog control is used to browse and select a browser.    Now the question comes  How to use FolderBrowserDialog?  Drag and d"  
author: "Pushpendra Singh"  
published: 2010-12-11  
updated: 2020-03-12  
canonical: https://www.mindstick.com/articles/298/folderbrowserdialog-control-in-vb-dot-net  
category: "vb.net"  
tags: ["vb.net"]  
reading_time: 1 minute  

---

# FolderBrowserDialog Control in VB.Net

Where the FolderBrowserDialog control is used to browse and select a [browser](https://www.mindstick.com/articles/323165/top-10-fastest-internet-browsers-in-the-world).\
\
Now the [question](https://www.mindstick.com/blog/23175/how-to-solve-neet-question-paper-in-less-time) comes\
**How to use FolderBrowserDialog?**\
[Drag and drop](https://www.mindstick.com/forum/454/how-to-drag-and-drop-multiple-image-from-one-canvas-to-onther-canvas-in-html5) FolderBrowserDialog control from the toolbox on the [window Form](https://www.mindstick.com/forum/527/how-to-pass-datagridview-s-cells-value-to-another-window-form). \
Drag and drop [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net) and [textbox](https://www.mindstick.com/articles/320/textbox-control-in-vb-dot-net), the button for showing browser [dialog](https://www.mindstick.com/forum/500/print-dialog-using-c-sharp) and textbox to show the selected path.

#### \

![FolderBrowserDialog Control in VB.Net](https://www.mindstick.com/mindstickarticle/463c11c3-4360-4797-91da-506843dc0dd6/images/dd05a736-1f93-4049-9d26-b66babf6d63e.png)

![FolderBrowserDialog Control in VB.Net](https://www.mindstick.com/mindstickarticle/463c11c3-4360-4797-91da-506843dc0dd6/images/bd172059-6018-495f-8916-61ba8554ec55.png)

Drag and drop button and textbox, a button for showing browser dialog and textbox to show the selected path.

## Code:

```
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click           'FolderBrowserDialog will show         FolderBrowserDialog1.ShowDialog()         TextBox1.Text = FolderBrowserDialog1.SelectedPath  End Sub
```

**Run the [project](https://yourviews.mindstick.com/story/1788/things-to-ensure-your-construction-project-is-successful)**

![FolderBrowserDialog Control in VB.Net](https://www.mindstick.com/mindstickarticle/463c11c3-4360-4797-91da-506843dc0dd6/images/bc63e0e8-a102-4620-b99e-2a9b36e92a96.png)

When you click the Browse button then FolderBrowserDialog will open.

![FolderBrowserDialog Control in VB.Net](https://www.mindstick.com/mindstickarticle/463c11c3-4360-4797-91da-506843dc0dd6/images/d7b64023-2c51-4708-a129-1519bcdd7747.png)

When you select a file and click ok then the path of the selected file will show in the TextBox

![FolderBrowserDialog Control in VB.Net](https://www.mindstick.com/mindstickarticle/463c11c3-4360-4797-91da-506843dc0dd6/images/14ed3b75-7d12-46d0-9cda-31424bf74e8f.png)

Next [Article](https://yourviews.mindstick.com/view/81489/kashmir-now-after-an-year-of-abrogation-of-article-370) :- [**MaskedTextBox Control in C#.Net**](https://www.mindstick.com/Articles/407/maskedtextbox-control-in-c-sharp-dot-net)

---

Original Source: https://www.mindstick.com/articles/298/folderbrowserdialog-control-in-vb-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
