Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 611611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:48:11+00:00 2026-05-13T17:48:11+00:00

I have a folderBrowserDialog control and i have a button named click i did

  • 0

I have a folderBrowserDialog control and i have a button named click
i did like this way

 private void click_Click(object sender, EventArgs e)
    {
        folderBrowserDialog1.ShowDialog();
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:48:11+00:00Added an answer on May 13, 2026 at 5:48 pm

    If what you wish to accomplish is to automatically display a folder of your choice whenever the FolderBrowserDialog is shown, then you can use the following code:

    private void click_Click(object sender, EventArgs e)
    {
        FolderBrowserDialog f = new FolderBrowserDialog();
    
        f.Description = "Please browse to, and select a folder";
        f.RootFolder = @"C:\Name Of Folder You Want Displayed\";
    
        using(f)
        {
            if(f.ShowDialog() == DialogResult.OK)
            {
                // Do something when the user clicks OK or Open.
            }
        }
    }
    

    Or, you could simply add a FolderBrowserDialog to your Form from the Visual Studio ToolBox and click on the Properties tab, and then click the down arrow to the right-hand side of the ‘Root Folder’ option and select one of the listed folders from the drop-down menu.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a code to move a file as follows private void Move_Click(object
I'd like to have a user select a folder with the FolderBrowserDialog and have
Have following kernel function: private static String programSource = __kernel void sampleKernel(__global float *Y,
Have a look at this pseudocode: void* magicpointer = malloc(OVER_NINE_THOUSAND); NSValue* v = [NSValue
Have 2 tables for example: In 1st: object & parent columns object | parent
I have seen that there is a folderBrowserDialog but couldn't see one for files
I have this code: public partial class Form1 : Form { public Form1() {
Maybe some of you have come across this before.... I am opening files for
I have a Windows Form application. What this application does, is let the user
I have the following code: public void DriveRecursion(string retPath) { string pattern = @[~#&!%\+\{\}]+;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.