using openFileDialog will not return a filename in use, I want the filename only I don’t care if it’s in use
The file will most likely be in use, I just want to be able to find the file and retrieve its name and location to perform a connection.
OpenFileDialog works until I select the file, then it has a popup that says “File in Use”. I don’t want it to check for that, just return the filename.
It seems that setting the
ValidateNamesproperty tofalsesolves the problem (but don’t ask why 🙂 …)Here’s the code I used to try out:
Commenting out the third line gave me the described error “file in use”.