
File List Box Problem on Network Drives
http://support.microsoft.com/support/kb/articles/Q196/1/41.asp
PRB: Problems Using Intrinsic File System Controls
SYMPTOMS
When you are using the intrinsic Visual Basic file system
controls
(for example, DriveListBox, DirListBox, FileListBox), some or
all of
your files are not listed. This usually occurs when you are
trying to
access files on a network server, but can occur locally under
some
circumstances.
These controls are old technology. They were not designed for,
nor tested with, some of the new operating and network system
software. Specifically, these controls rely on the existence of
8.3
file and directory names. Any set of circumstances that result
in
the unavailability of 8.3 names will cause problems. For
example,
you can disable the creation of 8.3 file or directory names on
a
Windows NT Server. If this happens, the intrinsic controls will
only
see those directories or files that have 8.3 names.
RESOLUTION
As stated in the Visual Basic 5.0 Programmer's Guide, the best
resolution is to use the CommonDialog control. Not only is it
more
likely to work, it also makes your application's user interface
consistent with other Windows applications.
Even if you do not want to use the CommonDialog, it can help
you
determine the specific nature of the problem you are
experiencing.
To demonstrate this, try using the CommonDialog to access the
directories or files that are causing the problem when you are
using the intrinsic controls. If the CommonDialog can display
these
files, the problem is most likely the result of the limitations
of the
intrinsic controls. If the CommonDialog fails, the problem is
most
likely located in the computer or network file system
configuration.
* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!