Charles
Charles

Reputation: 91

How to use OpenFileDialog on Open File

How do I allow the OpenFileDialog to select a file already open in another application?

Currently it does NOT allow me to select a file already open. I simply need the file path, I am not actually trying to open the file (as its already open) but the OpenFileDialog component will not let me get the file path as it throws an error about the file already being open.

Update 1: By thow an error I mean to say it pops up another dialog window that says...

"This file is in use. Enter a new name or close the file that's open in another program"

Upvotes: 1

Views: 871

Answers (1)

Daniel A. White
Daniel A. White

Reputation: 190907

Use the ValidateNames property. Set it to false.

Upvotes: 3

Related Questions