J
James Kunicki
Hello,
I would like to know if anyone as found a way to
list a image next to a list box to indicate what type of
drive (local or network) and a folder
I would like to present in a user interface like the OpenFileDialog
that has a pulldown(at the top of the dialog) to allow a user
to navigate a directory/folder selection.
I am just looking to extracted the Drive and folder only.
This code fragment will list drive letters and folders.
Dim dirInfo as Directory
Dim drive,dirpath as string
Me.ComboBox1.Items.Clear()
dim drives() as string = dirInfo.GetLogicalDrives()
For Each drive in drives
Try
Dim paths() as string = Director.GetDriectories(drive) 'Only grab
drives that are available
For Each dirpath in paths
Me.ComboBox1.Items.Add(dirpath)
Next
Catch ' ignore errors/drives that are not ready ie A:\ or a CD or
DVD drive...
End Try
Me.ComboBox1.SelectedIndex = 1 ' Now select the first Item found
I would like to list the images just like the OpenFileDialog to give the
user a graphical representation
of the directories and paths found.
Thank you
I would like to know if anyone as found a way to
list a image next to a list box to indicate what type of
drive (local or network) and a folder
I would like to present in a user interface like the OpenFileDialog
that has a pulldown(at the top of the dialog) to allow a user
to navigate a directory/folder selection.
I am just looking to extracted the Drive and folder only.
This code fragment will list drive letters and folders.
Dim dirInfo as Directory
Dim drive,dirpath as string
Me.ComboBox1.Items.Clear()
dim drives() as string = dirInfo.GetLogicalDrives()
For Each drive in drives
Try
Dim paths() as string = Director.GetDriectories(drive) 'Only grab
drives that are available
For Each dirpath in paths
Me.ComboBox1.Items.Add(dirpath)
Next
Catch ' ignore errors/drives that are not ready ie A:\ or a CD or
DVD drive...
End Try
Me.ComboBox1.SelectedIndex = 1 ' Now select the first Item found
I would like to list the images just like the OpenFileDialog to give the
user a graphical representation
of the directories and paths found.
Thank you