Open file dialog with strange file name

G

GrantS

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
 
M

Morten Wennevik

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?
 
M

Morten Wennevik

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top