469,612 Members | 2,644 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

How to filter files with NO extension

I am using the Filter property within OpenFileDialog. I understand how to
filter files with extensions, but this time I need to filter files without
extensions. Can someone tell me how this is done?
--
Steve
Nov 17 '05 #1
2 3497
Hi Steve,

This is untested, but the DOS dir command will show files without extensions using "*."
On Mon, 19 Sep 2005 22:26:05 +0200, Steve Teeples"" <St**********@discussions.microsoft.com> wrote:
I am using the Filter property within OpenFileDialog. I understand how to
filter files with extensions, but this time I need to filter files without
extensions. Can someone tell me how this is done?


--
Happy coding!
Morten Wennevik [C# MVP]
Nov 17 '05 #2
When applying the filter "PO Files | (*.) | *." with a FilterIndex of 1
returns an empty openfiledialog box. Is there another method?
--
Steve
"Morten Wennevik" wrote:
Hi Steve,

This is untested, but the DOS dir command will show files without extensions using "*."
On Mon, 19 Sep 2005 22:26:05 +0200, Steve Teeples"" <St**********@discussions.microsoft.com> wrote:
I am using the Filter property within OpenFileDialog. I understand how to
filter files with extensions, but this time I need to filter files without
extensions. Can someone tell me how this is done?


--
Happy coding!
Morten Wennevik [C# MVP]

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by rjl444 | last post: by
reply views Thread by John | last post: by
3 posts views Thread by vishpala kadam via .NET 247 | last post: by
reply views Thread by ShaneO | last post: by
2 posts views Thread by eric.goforth | last post: by
6 posts views Thread by Rob | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.