|
-
Jun 22nd, 2005, 05:26 PM
#1
Thread Starter
Lively Member
Capitalise DriveListBox?
The letters in my DriveListBox always seem to be lower case. Is there an easy way to make them upper?
Also where can i learn to deal with the checkboxes in lists?
Thanks in advance
-
Jun 22nd, 2005, 06:50 PM
#2
-
Jun 22nd, 2005, 07:13 PM
#3
Thread Starter
Lively Member
Re: Capitalise DriveListBox?
I don't know how to use it though...
Doesn't work with form_load etc.
EVen this comes out lowercase....
VB Code:
Private Sub Form_Load()
TheDrive = DriveSel.Drive
UCase (TheDrive)
MsgBox TheDrive
End Sub
Ah i used this and it seemed to work:
VB Code:
UCase(Left(DriveSel.Drive, 2) & "\")
I just can't seem to get the actual DriveListBox to say A:\, C:\ etc ??
Thanks!
Last edited by BefunMunkToloGen; Jun 22nd, 2005 at 07:20 PM.
-
Jun 22nd, 2005, 07:33 PM
#4
Re: Capitalise DriveListBox?
Is this better?
VB Code:
Dim sDrive As String
sDrive = UCase(Split(Drive1.Drive, " ")(0))
MsgBox sDrive
Has someone helped you? Then you can Rate their helpful post. 
-
Jun 23rd, 2005, 09:15 AM
#5
Thread Starter
Lively Member
Re: Capitalise DriveListBox?
That works yeah, but i'm trying to make the actualy DriveListBox in upper case. For example, if you click on a list my app produces it will say C:\Folder\SubFolder with a capital C, but the actual drivelistbox is still lower case...
-
Jun 23rd, 2005, 09:23 AM
#6
Re: Capitalise DriveListBox?
 Originally Posted by BefunMunkToloGen
Also where can i learn to deal with the checkboxes in lists?
What do you mean "deal with"?
-
Jun 23rd, 2005, 09:33 AM
#7
Re: Capitalise DriveListBox?
All the drive letters are lower case in the drive listbox. If you want uppercase, you'd have to write your own control. I did it for printers, it isn't too difficult.
-
Jun 23rd, 2005, 09:36 AM
#8
Thread Starter
Lively Member
Re: Capitalise DriveListBox?
Ah that doesn't matter I'm more annoyed with the drivelistbox lol
Ok well i have a few ideas now.
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
|