c# - How to select the file which is already opened using OpenFileDialog -
i trying select file opened in quickbook software.
code :
openfiledialog ofdbrowsevinv = new openfiledialog(); ofdbrowsevinv.title = "locate quickbook company file"; ofdbrowsevinv.filter = "quickbook company file (*.qbw,*.qbw)|*.qbw;*.qbm"; ofdbrowsevinv.filename = ""; if (ofdbrowsevinv.showdialog() == system.windows.forms.dialogresult.ok) { string strfilename = ofdbrowsevinv.initialdirectory + ofdbrowsevinv.filename; } after selecting file .. getting message : file in use
can 1 tell me how can select file opened...

the following code seems help:
ofdbrowsevinv.validatenames = false;
Comments
Post a Comment