Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

File List Control

Posted on 2002-07-23
4
Medium Priority
?
176 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 200 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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

824 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