I’ve seen a lot of times, programas that have something like textbox that is used to get/save the path of something… There’s a button on it and when you click on it opens a prompt for you to select the directory, you know ?
How Could I do that?
I have to read a file.txt, and I need my application to open this file.txt, how I open this “prompt” ? Then I need to save a destination path the same way… Is it actually a textboxor something else?
Thanks
You need to add an
OpenFileDialogto your form (MSDN has more info)This sample should explain it better than I could!