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 7025211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:56:38+00:00 2026-05-27T23:56:38+00:00

I have a form with a text box for a user to enter a

  • 0

I have a form with a text box for a user to enter a search string for folder names.
The app then finds matching folder(s) on the network.

If a single folder is returned it opens in explorer.

If multiple folders are returned in the search they are added to an array as a unc path.

I need to know the best way or which object to use to populate the contents of the array with on the main form.
I then need to be able to double click on the desired result to open the containing folder in explorer to handle multiple matches.

searching for match1
array could contain something like: H:\match1, G:\Match1, K:\folder1\Match1

  • 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-27T23:56:39+00:00Added an answer on May 27, 2026 at 11:56 pm

    If I understood your intentions correctly, a simple ListBox should do. You can handle each path in your array as one list entry and listen to the double click to open the explorer window.

    To fill the listbox you could utilize the datasource attribute:

        string[] paths = new string...
    
        // fill array
    
        yourListBox.DataSource = paths;
    

    Addendum: To react to the double click simply listen to the double click event of the list box and in the event handler, do something like this:

     private void yourListBox_DoubleClick(object sender, EventArgs e)
     {
         openExplorerWindow((string)yourListBox.SelectedItem);
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

id like to have an input box that a user can enter a search
I will have a text box where user can enter 0-9999 . If the
I have a master page and have included a search text box. User is
I have a C# form that has a text box that needs to constantly
I have created an form validation using ajax/php. Each text box is validated using
I have a form where the user has to enter a list of choices
I have a text box and many buttons. When user is in some text
I have a simple form for searching for a user <p>Enter a user's id
I have a simple form with one text box that pass data to SQL
On a flex project, I have a slider and text box on a form

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.