Solved

How to use OpenFileDialog to display all files in the folder except for some?

Posted on 2016-08-25
2
57 Views
Last Modified: 2016-08-25
Hi experts

When I want the OpenFileDialog to display all files with some specific name (such as "abc") in the folder, I do this:
    var openFileDialog = new OpenFileDialog();
    openFileDialog.FileName = "abc*";

Open in new window


My question is how to do the opposite, i.e., I want the OpenFileDialog to display all EXCEPT those with some specific name (such as "abc") in the folder?

PS. I am using C#, .NET 3.5.
Thanks
Dominic
0
Comment
Question by:dominicwong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
sunilgohel earned 500 total points
ID: 41771215
Thats not possible in Dot net.
1
 

Author Closing Comment

by:dominicwong
ID: 41771236
Thanks sunilgohel.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question