473,513 Members | 2,581 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 3756
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**********@discussions.microsoft.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**********@discussions.microsoft.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
1862
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
8361
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...
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
1981
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?...
0
998
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...
2
10824
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...
8
6061
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...
6
1468
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()...
3
5188
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...
0
7260
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,...
0
7160
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...
0
7537
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...
1
7099
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5086
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...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3233
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.