|
-
Apr 22nd, 2024, 01:39 PM
#1
Re: [VB6, twinBASIC] ucDriveCombo - A modern DriveList replacement
 Originally Posted by AAraya
Latest test, all works GREAT!
I added a Drive property for backward compat which just calls your SelectedDriveLetter method.
I checked the original VB6 control and the Drive() method returns the friendly name, like
e: [WD_4TB]
g: [SG_4TB]
*Except* for C: for some reason. I don't know if that's just my computer or some glitch on my version of Windows... I know where the glitch comes from though; it's using GetVolumeInformation for the label, which for some reason, if C:\ has the default 'Local disk' label, returns a blank. This is why I switched to using SHParseDisplayName/SHGetNameFromIDList. I'll see how widespread the issue is across Windows versions and if it impacts it if you change the label to something else, but for now, .Drive is using the 'Name' property, equivalent to SelectedDriveName.
Tags for this Thread
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
|