Drive ListBox Control for VS.2005?

  • Thread starter Thread starter dm1608
  • Start date Start date
D

dm1608

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.
 
dm1608 said:
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.
 
dm1608 said:
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())
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top