Dynamic File Path Assignment (Browse Feature)

Joined
Jun 17, 2003
Messages
7
I am writing an application that processes a generic text file. My application will be loaded on several different PCs, so the location of the file to be processed may have a different path or filename, depending on the users preference.

What I have is a simple textbox were the user can type in the path & filename of the file to be processed. But I want to make it more convenient for the user by having a "Browse" button they can click and select the path/filename, instead of having to type it in manually. How can I set up a "Browse" function like this?

Thanks,

Visualbasicuser
 
Read up on the OpenFileDialog control. Use this control in place of your text box input. For example, add a menu control and set it up similiar to any MS application (i.e.. File>Open).
 
Back
Top