473,671 Members | 2,283 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to filter files with NO extension

I am using the Filter property within OpenFileDialog. I understand how to
filter files with extensions, but this time I need to filter files without
extensions. Can someone tell me how this is done?
--
Steve
Nov 17 '05 #1
2 3789
Hi Steve,

This is untested, but the DOS dir command will show files without extensions using "*."
On Mon, 19 Sep 2005 22:26:05 +0200, Steve Teeples"" <St**********@d iscussions.micr osoft.com> wrote:
I am using the Filter property within OpenFileDialog. I understand how to
filter files with extensions, but this time I need to filter files without
extensions. Can someone tell me how this is done?


--
Happy coding!
Morten Wennevik [C# MVP]
Nov 17 '05 #2
When applying the filter "PO Files | (*.) | *." with a FilterIndex of 1
returns an empty openfiledialog box. Is there another method?
--
Steve
"Morten Wennevik" wrote:
Hi Steve,

This is untested, but the DOS dir command will show files without extensions using "*."
On Mon, 19 Sep 2005 22:26:05 +0200, Steve Teeples"" <St**********@d iscussions.micr osoft.com> wrote:
I am using the Filter property within OpenFileDialog. I understand how to
filter files with extensions, but this time I need to filter files without
extensions. Can someone tell me how this is done?


--
Happy coding!
Morten Wennevik [C# MVP]

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1872
by: rjl444 | last post by:
I created a file filter for csv file. when I click browse, this extension is shown nad I have the option to select all files in the combo box. How can I make all files the default? thanks, rjl444
5
8363
by: bart plessers | last post by:
Hello, I am developping a file browser bu use of internet explorer. I am already so far that I get a full list of all the files of a selected directory. However, I only want to display certain files, i.e. pictures: jpg, gif, png, tiff, etc... So I want to set up a main variable, containing this "filter"
0
328
by: John | last post by:
Is there a way to watch more than 1 extension? The default filter is *.* (watch all files with an extension). How do I set it so I can have *.txt and *.dll monitor? Thanks
3
1994
by: vishpala kadam via .NET 247 | last post by:
Hi, I am using <input type="file"> to upload files in my asp.net application. I want to set the filter so that user can view only .xls files once he/she clicks the Browse button. Is it possible? How? -------------------------------- From: vishpala kadam vishpala_kadam@yahoo.com ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/)
0
1005
by: ShaneO | last post by:
I am trying to do the following - OpenFileDialog1.Filter = "Filename without Extension|*." OpenFileDialog1.ShowDialog() (Note that the Filename Filter has no extension, which is a requirement!) When called, no files are shown within the Dialog Box, even though such files exist. If I change the Filter to |*.* or |*.txt etc it works fine and shows all the files of the Filtered type, but this is NOT what I
2
10838
by: eric.goforth | last post by:
Hello, I'm using the Filesystemobject in VB.NET 1.1. Is there anyway to filter on the files based on an extension? Something like: Dim fso As New FileSystemObject Dim objFolder As Folder Dim objFile As File 'Work with the root first
8
6080
by: marcus.kwok | last post by:
I am having a weird problem and I have can't figure out why it is happening. I create an OpenFileDialog and set a filename filter. When the dialog first opens, the filter works correctly, and only the files I want to see appear in the file list box. When I change the filter to one of the other filters, all the files in the list disappear. If I then manually type a filter into the "Filename" textbox, then the files appear and the filter...
6
1475
by: Rob | last post by:
I want to copy files from one folder to another... but only if it is a ".txt" file... Below should work, but how would you filter on ".txt" files only ? Thanks ! Dim fileEntries As String() = Directory.GetFiles(targetDirectory) ' Process the list of files found in the directory. Dim fileName As String
3
5197
by: igglepiggle | last post by:
I have developed a form that runs a folder browser dialog and then details all filenames within the chosen folder in a listbox. Currently the filenames populate a 1-D array before they are written out to the listbox. I need to introduce a combobox that will act as an extension filter. So, when the filenames are written to the listbox, the combobox is populated with the unique file extensions from this list. When the extension is clicked,...
0
8474
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8392
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8912
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8819
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4403
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2809
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2049
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1807
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.