Is it possible to select the whole folder in VB.NET open dialog box?
By this I mean, open the dialog box and navigate through the folder and then select an entire folder not an individual file.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You can’t select a folder with the OpenFileDialog. You can select a folder with the FolderBrowserDialog.
Are you looking to select all the files in a folder? If so, use a FolderBrowserDialog to allow users to select a folder and call code similar to the following:
You can also go ahead and use an OpenFileDialog and set its Multiselect property to true. This will allow your users the select more than one file in the dialog.
Does that answer your question?