4

I have a form that a user uses to upload a CSV file. Right now the user has to type the full file path of the file into a text box. How can I get a browse for file popup to allow the user to navigate to the file instead of having to type the whole path? Is the functionality already present and I just don't know how to use it yet?

Fionnuala
  • 90,370
  • 7
  • 114
  • 152
Tommy Johnson
  • 239
  • 1
  • 2
  • 15

1 Answers1

2

you can create your own class with API calls. Here you have the code. Or you can add a reference to Microsoft Office xx Object Library and use the FileDialog class. Here you have an example of usage.

I prefer the first method, because you are not attached to an external library.

Community
  • 1
  • 1
mnieto
  • 3,744
  • 4
  • 21
  • 37