hi,
is it possible to set the filter of an OpenFileDialog to allow only *.txt files OR directories to be choosen BUT nothing else ?
and of course: if yes, how?
thanx,
Usul
hi,
is it possible to set the filter of an OpenFileDialog to allow only *.txt files OR directories to be choosen BUT nothing else ?
and of course: if yes, how?
thanx,
Usul
I would like someone to say otherwise, but I dont think that this is possible without maybe a custom control being made.
The open file dialog is looking for just a file to be selected... so if you select a folder, it will just open the folder, not return it as the selected value. Then there is the folder dialog which has you browse for just a folder.
For inputting a directory path from the user you use the FolderBrowserDialog control, not OpenFileDialog.
well thats not very flexible. so one would have to write his own dialog, right? how annoying.
i didnt find FolderBrowserDialog . ???