What happened to the drive list that vb6 had? Am I missing something in my IDE?
Printable View
What happened to the drive list that vb6 had? Am I missing something in my IDE?
you need to add this in the toolbox
There is no drivelist native to .NET, however you can use it as a compatibility control. But that is replaced by OpenFileDialog, SaveFileDialog and if you are using 2003, FolderBrowserDialog.
I've used those controls. :)
is it just the same to use the folder browser to select drives?:confused:
if you add a combo box to your form, you can bung all your drives into it on load , eg:
then you could loop through the folders / files in a particular drive by clicking on the combo box's item / add them to a listbox.VB Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ComboBox1.Items.AddRange(Environment.GetLogicalDrives) ComboBox1.Text = Application.ExecutablePath.Substring(0, 3) '/// your local drive. End Sub