Solved

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

Posted on 2016-08-25
2
41 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 500 total points
ID: 41771215
Thats not possible in Dot net.
1
 

Author Closing Comment

by:dominicwong
ID: 41771236
Thanks sunilgohel.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now