Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


File List Control

Posted on 2002-07-23
Medium Priority
Last Modified: 2012-05-04
I am using the file list control in VB and it is only showing me the short file names.  How I can get it to show long file names?
Question by:curtis591
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 75

Expert Comment

by:Anthony Perkins
ID: 7173035
You may want to check out this document from MSDN:
PRB: Problems Using Intrinsic File System Controls;EN-US;Q196141&

BUG: FileListBox Display Inconsistent Between Windows 95 and Windows NT 4.0 (Q184247);EN-US;Q184247&
PRB: FileListBox Control May Not List File Names Properly;EN-US;Q196028&

In other words, it is time you looked for alternatives, such as the Common Dialog Box.


Accepted Solution

glass_cookie earned 200 total points
ID: 7173496

How about usaing the dir function to loop out all the files in a folder, then input the stuff to a listbox?

Anyway, here's a file for you over the net:

Description: Search a directory for a file using a class (5K)


Description: Search for files matching a pattern (2K)

From there, you could fuse that code into the dirlistbox :)

That's it!
glass cookie : )

Author Comment

ID: 7175100
We have to restrict the users to where they are can pick files from and I couldn't see a way to do that with the Common Dialog box but the dir function will serve us perfectly.

Expert Comment

ID: 7176509
So, is your question solved?

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question ( in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question