Hi,
Is there any control drivelistbox in Dot Net ? I have seen this control in VB6 but not in dot net ?
Hi,
Is there any control drivelistbox in Dot Net ? I have seen this control in VB6 but not in dot net ?
It depends on what you're using (WPF, WinForms, etc.) but I suppose there is not. You could easily make one though, just populate a ListBox with a list of drives.
You can get an array of the logical drives on your computer using the Environment.GetLogicalDrives()
method.
It seems that it has been obsoleted - http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.compatibility.vb6.drivelistbox.aspx
As tusbar rightly said, if you're using WPF - you could make it in a snap with a Listbox databinding to a list returned from a DriveInfo.GetDrives() invocation.