OpenFileDialog throws "Illegal characters in path"

  • Thread starter Thread starter Shilpa
  • Start date Start date
S

Shilpa

Hi,

I have a OpenFileDialog on my windows form whose filter is *.*.
I want the users to be able to further filter the files by giving *.doc
or *.zip etc in the "file name" field of the dialog (Just like it
happens in the open file dialog of MS Word)
Currently, if the user enters a wild card character in the file name
field, it is throwing an exception with the message "Illegal characters
in path".
Please let me know how to achieve the above mentioned functionality.

Regards,
Shilpa
 
Hi,

Thanks for the reply.
But my application requires the user to enter a wildcard character in
the file name of the OpenFileDialog (say *.zip) when the actual filter
of the dialog is *.*.
How do I go about doing this?

Regards,
Shilpa
 
I can't reproduce this in .NET 2.0. Works just fine typing wildcards in the
filename box. What version are you using?

/claes
 
Back
Top