CommonDialogBox: Show only files with NO extension

Any idea of how I can get the CDB to only list files that DON'T have an extension?  Tried using the filter, but haven't got it to work?

Ta
LVL 1
MushyPeasAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dang123Commented:
MushyPeas,
   Try setting the filter to

*.

Dang123
0
MushyPeasAuthor Commented:
Nope.. doesn't work.  I'm beginning to thnk I've found the impossible!  Shame, I have to use *.* and that shows ALL the files, so then users got to trawl through them all.
0
DabasCommented:
Hi MushyPeas,
It depends what you meen by Don't have an extension?
Something like File1 as opposed to File1.txt

Or you want something like "all files except the ones that have extension .doc"

If its the former, then Dang's answer looks correct to me


Dabas
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

MushyPeasAuthor Commented:
Hmm.... I do want to display files like File1, not File1.txt.  I changed the filter to:

    .Filter = "Risk Manager Backup Files (*.rmb)|*.rmb;*.|All files (*.*)|*.*"

and then to:

    .Filter = "Risk Manager Backup Files |*.|All files (*.*)|*.*"

But neither worked.  I don't see ANY files if I'm using the *. filter.  

I tried duplicating the same thing in Word and it DOES work via word, but not using the Visual Basic 6 Common Dialog box.
0
DabasCommented:
MushyPeas,
Please check your windows explorer settings. Is the "Hide extensions to known files ticked?"
Try unticking it

Dabas
0
MushyPeasAuthor Commented:
No, it's definately not ticked - I hate that setting!  Besides, it does work in Word.  Does it work for you in VB?  Maybe there's some flag I'm supposed to be setting

Michelle
0
DabasCommented:
MushyPeas,

No it does not work in VB. Must be a bug
I also tried * (alone), *.? *.(space)

You can overcome the problem by using the filesystemobject and creating your own common dialog.

It is not as difficult as it seems!
Dabas
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DabasCommented:
Michelle:

I tried in VB.NET and same problem!

Interesting!

Daniel
0
MushyPeasAuthor Commented:
Interesting?  Frustrating!!  I've split the points, hope that's fair.  As for fso - could, but can't be bothered - users will have to cope for the moment.
0
DabasCommented:
Michelle:

If you split the points, I benefited from both sides of the split! :-)}
I have not given up on this issue yet!

Dabas
0
MushyPeasAuthor Commented:
Well if you find a solution, make sure you post it here!
0
DabasCommented:
Michelle:

Sorry, but no luck.
I think that part of the problem is caused by most folders also being of the *. type. Since the commond dialog shows you the folder list, they might have programmed it to ignore the *. filter.

FSO would be the way to go with your own custom dialog box. As mentioned earlier it is not as hard as it looks like.

Good luck!

Daniel
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.