Results 1 to 8 of 8

Thread: Capitalise DriveListBox?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    107

    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

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Capitalise DriveListBox?

    This?

    VB Code:
    1. UCase(Drive1.Drive)


    Has someone helped you? Then you can Rate their helpful post.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    107

    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:
    1. Private Sub Form_Load()
    2. TheDrive = DriveSel.Drive
    3. UCase (TheDrive)
    4. MsgBox TheDrive
    5. End Sub

    Ah i used this and it seemed to work:

    VB Code:
    1. 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.

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Capitalise DriveListBox?

    Is this better?

    VB Code:
    1. Dim sDrive As String
    2.  
    3. sDrive = UCase(Split(Drive1.Drive, " ")(0))
    4. MsgBox sDrive


    Has someone helped you? Then you can Rate their helpful post.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    107

    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...

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Capitalise DriveListBox?

    Quote Originally Posted by BefunMunkToloGen
    Also where can i learn to deal with the checkboxes in lists?
    What do you mean "deal with"?

  7. #7
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    107

    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
  •  



Click Here to Expand Forum to Full Width