|
-
Sep 26th, 2007, 12:46 PM
#1
Thread Starter
Addicted Member
[2.0] [Resolved] driveListBox - getting full path
I am using the driveListBox and I need to get the entire path, not just the drive letter. For example, if the drive letter is z: but the actual path is \\server1\share1\myfolder\, how do I get the actual path? Thanks.
Last edited by jordan23; Sep 27th, 2007 at 09:05 AM.
Reason: Resolved
-
Sep 26th, 2007, 07:46 PM
#2
Re: [2.0] driveListBox - getting full path
The DriveListBox is an old VB6 control and you shouldn't use it. If you want a list of drives then use the DriveInfo.GetDrives method to get an array of DriveInfo objects. You can then bind that to a ListBox or ComboBox if you like, plus each DriveInfo gives you various drive properties.
-
Sep 27th, 2007, 09:04 AM
#3
Thread Starter
Addicted Member
Re: [2.0] driveListBox - getting full path
Thanks. I appreciate the help. I was able to find the network drive by using the driveListBox1.Drive property if I end up keeping the control. Thanks again.
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
|