I have a need to build a listbox with a list of available drives on the
local workstation within my VS.2005 application. Can someone please show
me how to create a control with all the drive letters in it so one can be
selected. Any help would be appreciated.
Bob Butler - 22 Dec 2005 17:24 GMT
> I have a need to build a listbox with a list of available drives on
> the local workstation within my VS.2005 application. Can someone
> please show me how to create a control with all the drive letters in
> it so one can be selected. Any help would be appreciated.
Please remove microsoft.public.vb.controls from the cross-post list as this
has nothing to do with VB 6.0 or earlier.

Signature
Reply to the group so all can participate
VB.Net: "Fool me once..."
Herfried K. Wagner [MVP] - 22 Dec 2005 17:49 GMT
"dm1608" <dm1608@spam.net> schrieb:
>I have a need to build a listbox with a list of available drives on the
>local workstation within my VS.2005 application. Can someone please show
>me how to create a control with all the drive letters in it so one can be
>selected.
\\\
Me.ListBox1.Items.AddRange(Environment.GetLogicalDrives())
///

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>