469,930 Members | 2,012 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,930 developers. It's quick & easy.

Open file dialog with strange file name

I am needing to permit users to select files using the 'Open file'
common dialog box. The format of the names of the files are along the
names of: GB00((&X.001.jpg

I am not able to show these files in the dialog box for selection. I
do need to use filters (cannot use (*.*| all files)

I tried using the filter *.*.jpg without success.

The filter string I have tried is:
"All files(*.*)|*.*|All files(*.*.*)|*.*.*|Jpg Image
files(*.*.jpg)|*.*.jpg|Jpg Image files(*.jpg)|*.jpg|Jpeg Image
files(*.jpeg)|*.jpeg|MS Word files(*.doc)|*.doc"

Any ideas on how to view these files?

Thanks - in advance - for any pointers.

Grant
Nov 16 '05 #1
3 1847
Hi GrantS,

Your filter should work just fine, although there is no difference between
*.*.jpg and *.jpg.
Testing on my system I could view filenames like the one you mentioned
just fine.
Are you certain you are viewing the right directory?

--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2
"Morten Wennevik" <Mo************@hotmail.com> wrote:
there is no difference between *.*.jpg and *.jpg.


Not true. For example, test.jpg matches *.jpg but not *.*.jpg.

P.
Nov 16 '05 #3
On Mon, 6 Dec 2004 13:03:29 +0000 (UTC), Paul E Collins
<fi******************@CL4.org> wrote:
"Morten Wennevik" <Mo************@hotmail.com> wrote:
there is no difference between *.*.jpg and *.jpg.


Not true. For example, test.jpg matches *.jpg but not *.*.jpg.

P.


Ah, you are correct. I meant *.*.* and *.* which for some reason the only
difference I could find was the first one not showing filenames without
any '.' whereas the latter would do.

--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by John | last post: by
2 posts views Thread by Jonathan Trevor | last post: by
7 posts views Thread by Peter | last post: by
5 posts views Thread by Stefano Tonello | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.