471,887 Members | 1,210 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 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 1543
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 YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

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.