473,473 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help with FileListBox

13 New Member
I have a FileListBox named File1. I want it to only display filename excluding extension, and when I click any file's name it will open the file.
Aug 18 '07 #1
1 1625
Killer42
8,435 Recognized Expert Expert
I have a FileListBox named File1. I want it to only display filename excluding extension, and when I click any file's name it will open the file.
What version of VB are you using? (I'll assume for now that it's VB6, since that's what I'm familiar with.)

I don't think you can tell it to hide the extensions - that's a function of Windows. You'd have to go to Windows Explorer's view settings and change it, in which case it would apply all the time, not just in your program.

One thing you could try is to place a ListBox control on your form. Copy the contents from the FileListBox to the ListBox, stripping off the extension as you go.
Aug 21 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: martijn | last post by:
Probably not the first time this one is asked in this group... The standard filelistbox does what it says, it lists files. But as all windows based dialogs offer file details etc. I think it...
1
by: Vernon Gainous | last post by:
Does VB.NET have it's own set of controls for accessing the file system. VB6 had a DriveListBox, DirListBox, and FileListBox controls. Where are these controls for VB.NET?
6
by: Just Me | last post by:
Is there available DotNet code to replace the VB6 FileListBox and DirListBox, keeping the original appearances? Thanks in advance for any help
1
by: Gordon | last post by:
I'm an experienced VB6 programmer, but using VB.net for the first time. I'm trying to set up a FileListBox, and having trouble getting the control to display the files that are in the directory...
2
by: Lennart Nielsen | last post by:
I'm trying to use the FileListBox, but it does not seem to have the ListCount property or any substitute. Any bids on this or another way (short of the old DOS routine) to get a countable listing...
0
by: akoymakoy | last post by:
how do i link my dirlistbox to the filelistbox viceversa... I would like to use the path of the file selected in the filelistbox as a variable that i would use as a location for the DB that i will...
1
by: Suryakant V Kirloskar | last post by:
I've developed an interface in VB6 whereby I will be selecting text file to extract relative data to Oracle. I'm able to select one file from FileListBox and process. I want to automate this process...
0
by: Cancionero | last post by:
All, This is a simple problem that I, for some reason, am having a hard time with. Basically I am trying to rename all the files listed in a FileListBox based on a search and replace string. I...
0
by: gobblegob | last post by:
hi guys, I am updating a FileListBox with this... Private Sub tmr_Timer() File1.Refresh If File1.ListCount > nCount Then MsgBox "File has been added" nCount = File1.ListCount ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
1
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...
1
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
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.