I have the following code in my C # program:
OpenFileDialog fDialog = new OpenFileDialog();
fDialog.Title = "Open a file";
fDialog.Filter =
"NCF files (*.ncf)|*.ncf|All files (*.*)|*.*|No Extensions (*.)|*.";
I want the user to be able to choose from the following:
*. NCF (only files with the extension .NCF)
**. * (all files)
and files with no extensions , such as:
<w> filewithnoextension
I know ***. * Will do this, but also displays .NCF, .TXT and all other files in the same directory.
I just want to display the names of files that do not have extensions.
Filtering with *. doesn't do the trick. It works great when it does this with a DOS window ( dir *. ), But C # seems to ignore *. filter.
Is there a way to do this using C #?
Thank.