Solved

File List Control

Posted on 2002-07-23
4
172 Views
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?
0
Comment
Question by:curtis591
[X]
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
4 Comments
 
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
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q196141&

Also:
BUG: FileListBox Display Inconsistent Between Windows 95 and Windows NT 4.0 (Q184247)
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q184247&
PRB: FileListBox Control May Not List File Names Properly
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q196028&

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

Anthony
0
 
LVL 8

Accepted Solution

by:
glass_cookie earned 50 total points
ID: 7173496
Hi!

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:

Download...
http://www.vb-helper.com/HowTo/findfile.zip
Description: Search a directory for a file using a class (5K)

or

Download...
http://www.vb-helper.com/HowTo/search.zip
Description: Search for files matching a pattern (2K)

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

That's it!
glass cookie : )
0
 
LVL 6

Author Comment

by:curtis591
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.
0
 
LVL 8

Expert Comment

by:glass_cookie
ID: 7176509
So, is your question solved?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month6 days, 1 hour left to enroll

626 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