Solved

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

Posted on 2016-08-25
2
35 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 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

22 Experts available now in Live!

Get 1:1 Help Now