Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2016-08-25
2
Medium Priority
?
74 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
2 Comments
 
LVL 1

Accepted Solution

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

Author Closing Comment

by:dominicwong
ID: 41771236
Thanks sunilgohel.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Loops Section Overview

926 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