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
jaybinod@gmail.com - 29 May 2006 14:00 GMT
Hi,
Try this,
this.openFileDialog1.Filter = "Word Document|*.doc";
Regards,
Jay
jaybinod@gmail.com - 29 May 2006 14:02 GMT
Hi,
Try this,
this.openFileDialog1.Filter = "Word Document|*.doc";
Regards,
Jay
Shilpa - 30 May 2006 07:12 GMT
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
Claes Bergefall - 30 May 2006 17:11 GMT
I can't reproduce this in .NET 2.0. Works just fine typing wildcards in the
filename box. What version are you using?
/claes
> Hi,
>
[quoted text clipped - 9 lines]
> Regards,
> Shilpa