Solved

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

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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

617 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