Solved

File List Control

Posted on 2002-07-23
4
167 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…

896 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now