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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:47:09+00:00 2026-05-26T16:47:09+00:00

I have a file format converter on my VS2005 using C#. Now my destination

  • 0

I have a file format converter on my VS2005 using C#. Now my destination path is hard coded, and I would like to make it such that the user is able to browse for a path to store the output file.

I have googled and saw that I can use OpenFileDialog control in VS2005 toolbox under Dialogs. But I am not able to find that control in my VS2005.

I do not know if it is possible to save the filepath of the uploaded file, but I am able to save the file name and extension of the file that the user browses for.
E.g. Grep file name: string strFileName = Server.HtmlEncode(TextFile.FileName);
Grep file extension: string strExtension = Path.GetExtension(strFileName);

I would like to ask 2 questions:

  1. Is there an alternative for OpenFileDialog which I can use to browse for folders?
  2. Is there a statement which is able to grep the filepath of the file like what I have did to grep the filename and file extension?

Thank You

Any alternatives which I can use?

  • 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-26T16:47:10+00:00Added an answer on May 26, 2026 at 4:47 pm

    You’re looking for the FolderBrowserDialog class.

    If you’re using WPF, you’ll need to add a reference to System.Windows.Forms, since WPF doesn’t have its own version of this class.

    If you’re using ASP.Net, this is totally impossible, as is using a hard-coded path; you need to serve the file as a download.


    You’re also looking for Path.GetDirectoryName.

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

Sidebar

Related Questions

I have an XML based file format that I'm using to store and load
I have a data file in CSV format that has the some data like
I have a file format I need to be able to show in explorer
I have an XML file format that contains a structure of questions: <question id=q101>
I have a custom XML file format which can contain blocks of code within
I have a file in .gz format. The java class for reading this file
I have a file in below format. DATE Time, v1,v2,v3 05:33:25,n1,n2,n3 05:34:25,n4,n5,n5 05:35:24,n6,n7,n8 and
I have a photoshop plugin for a file format Ive written in c++ that
Say I have a file with the format: key1/value1 key2/value2 key3/value3 .... Say I
I know of the US GIS TIGER file format from years ago, but have

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.