A readme file normally has an extension. I suppose you did, but did you check this folder option to see the extensions of known file types? Has it changed anything?
EDIT #1
Frankly, I doubt you'd be able to make the OpenFileDialog display files with no extension, as the Filter property is based on the extension.
Perhaps you could inherit base your own implemented OpenFileDialog using the System.IO
namespace objects such as DirectoryInfo
, for instance, which will allow you to get the browsed folder files with the Getfiles()
method, then filter yourself through LINQ to display the files with no extension only with the FileInfo.Extension
property.
EDIT #2
Since the OpenFileDialog is sealed, you may use it as a nested type and implement your own methods using this nested type.
I hope this helps you!