My OpenFileDialog
has one single Filter
which is also the DefaultExt
. I wonder why, when the dialog opens, I also get all the Internet Shortcuts listed (it is OK to get the shortcuts to folders, for instance, but not the *.URL files).
Is there some magic switch which I can turn on in order to net get them included in the list displayed to the user?
Currently, I have to handle the condition in the FileOk
event handler by setting e.Cancel
to true
if I detect that the user selected an *.URL
file (it is not working 100% of the time either, some shortcuts seem still to be getting through the FileOk
filter). Not getting them in the list in the first place would be better, though.