Using OpenFileDialog to select both folder and file.
Download Source Download application Introduction Hi, guys as you all know that VB.net don't give you any built-in dialog which you can use in scenarios where you want to select or fetch both files and folders in a single showDialog() at the click of a button.Now, this has been a dream for many of the programmers who use VB.NET in most of their projects.Me too stumbled upon such a situation where in my application I needed my application to fetch the path of both a file and a folder using a single showDailog at the click of a button and as you guys know that VB.Net provides different dialogs for both of these.So after putting a lot of research and thinking into it I came up with an effective workaround which allows us to select both file and a folder using OpenFileDialog. Logic Now the basic logic that I applied is to turn the name validation of OpenFileDialog to false then turn file exists to false by default then turn path exists to true and then set a special keywor...