471,605 Members | 1,563 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

Drive ListBox Control for VS.2005?

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.

Dec 22 '05 #1
2 2044
"dm1608" <dm****@spam.net> wrote in message
news:OU**************@TK2MSFTNGP15.phx.gbl
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.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."

Dec 22 '05 #2
"dm1608" <dm****@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.GetLogicalD rives())
///

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

Dec 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by GregT | last post: by
5 posts views Thread by Brian | last post: by
5 posts views Thread by Dave H | last post: by
7 posts views Thread by Paul Bromley | last post: by
2 posts views Thread by dm1608 | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.