473,395 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Help with FileListBox

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 1623
Killer42
8,435 Expert 8TB
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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,...
0
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...
0
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
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...

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.