Hello,
I had this code: browse to a folder - what I want but process was Waaaayyyy sloooowww
*********
string ObsSpDAtaXMLFolder = @"C:\EHarvest\Management\O
bserverExp
ortFiles\T
ext Files";
Process.Start(ObsSpDAtaXML
Folder);
*********
So I changed to this: Browsing fast but don't want user to select a file
**********
openFileDialogCSVFilePath.
InitialDir
ectory = @"C:\EHarvest\Management\O
bserverExp
ortFiles\T
ext Files";//edXMLFile.Text.Tr
im();
if (openFileDialogCSVFilePath
.ShowDialo
g() == DialogResult.OK)
{
//edXMLFile.Text = openFileDialogCSVFilePath.
FileName.T
rim();
}
**********
Problem: Now browsing to the folder (with file dialog) but I only want to browse this folder, not do anything with the files in it fom this dialog. If user selects one of the files, the file gets tied up and can't be used by other processes.
Question:
Can I use above code but have a folder browse only open - NO file dialog???
Thanks
Start Free Trial