|
-
Dec 29th, 2003, 03:36 AM
#1
Thread Starter
Frenzied Member
Drive list in .net [RESOLVED]
What happened to the drive list that vb6 had? Am I missing something in my IDE?
Last edited by Andy; Feb 11th, 2004 at 09:53 PM.
-
Dec 29th, 2003, 04:27 AM
#2
New Member
you need to add this in the toolbox
-
Dec 29th, 2003, 05:23 AM
#3
Frenzied Member
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.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Dec 29th, 2003, 07:05 AM
#4
Thread Starter
Frenzied Member
I've used those controls.
is it just the same to use the folder browser to select drives?
-
Dec 29th, 2003, 12:43 PM
#5
if you add a combo box to your form, you can bung all your drives into it on load , eg:
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
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.
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|