469,159 Members | 1,476 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,159 developers. It's quick & easy.

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 1444
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

Post your reply

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

Similar topics

2 posts views Thread by martijn | last post: by
1 post views Thread by Vernon Gainous | last post: by
6 posts views Thread by Just Me | last post: by
1 post views Thread by Gordon | last post: by
2 posts views Thread by Lennart Nielsen | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.