TexG Posted April 29, 2003 Posted April 29, 2003 Hello All, Looking for a way to show all the drives on my system. Would like it to even show the folders graphicly. Only want to beable to pic a drive or subdir nuthing else. Can you all help? Thanks Quote
Guest mutant Posted April 29, 2003 Posted April 29, 2003 To get all drives you need to use the directory class: Dim driv As System.IO.Directory Dim drivelist() As String 'the return value is an array so you need one drivelist = driv.GetLogicalDrives() Quote
TexG Posted April 29, 2003 Author Posted April 29, 2003 Trying to figur out how that gets a list of drives and show the folders graphicly. could you explain thanks Quote
Guest mutant Posted April 30, 2003 Posted April 30, 2003 What do you mean graphically? Like a treeview of the drive folder structure? Quote
TexG Posted April 30, 2003 Author Posted April 30, 2003 No like when you do a openfile or save file. Quote
*Gurus* divil Posted April 30, 2003 *Gurus* Posted April 30, 2003 It sounds like you need an OpenFileDialog or SaveFileDialog. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
TexG Posted April 30, 2003 Author Posted April 30, 2003 is there a way to custimize openfiledialog with just the drives and a ok button maybe a cancal button thats it? thanks Quote
Guest mutant Posted April 30, 2003 Posted April 30, 2003 You cant inherit from OpenFileDialog so i dont think its that customizable. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.