Gutentag!
I am working in VB6 and want to capitalize the drive letters in a drivelistbox when the form loads. Any suggestions?
Thanks in advance,
sweezapizza
capitalize Drivelistbox
Started by sweezapizza, Nov 06 2007 06:13 AM
6 replies to this topic
#1
Posted 06 November 2007 - 06:13 AM
|
|
|
#2
Posted 06 November 2007 - 06:15 AM
So the driver list box displays c: or a: and you want them A: or C:??
#3
Posted 06 November 2007 - 06:17 AM
Yep. That is what I would like.
#4
Posted 06 November 2007 - 06:22 AM
Couldn't you just use the strtoupper() function after the list is generated or while it is being generated?
#5
Posted 06 November 2007 - 06:25 AM
So how would that work...
Private Sub Form_Load()
strtoupper (Drive1.Drive)
End Sub
??????????????????
Private Sub Form_Load()
strtoupper (Drive1.Drive)
End Sub
??????????????????
#6
Posted 06 November 2007 - 02:39 PM
That function doesn't even exist in VB lol. The uppercase command is UCase$ and I doubt you can change that!
Does NOT work, the only way to do it is, just change the font a an uppercase only font! If there is any other method, sorry but I don't know it.
UCase$ Drive.Drive
Does NOT work, the only way to do it is, just change the font a an uppercase only font! If there is any other method, sorry but I don't know it.
#7
Posted 06 November 2007 - 02:59 PM
Hello SweezaPizza
try This ;-)
Private Sub Form_Load()
Drive1.Font.Name = "Technic"
Drive1.Font.Size = 12
End Sub
Of course you must have installed this font,
don't u have it?
greetings
+Oliver
try This ;-)
Private Sub Form_Load()
Drive1.Font.Name = "Technic"
Drive1.Font.Size = 12
End Sub
Of course you must have installed this font,
don't u have it?
greetings
+Oliver


Sign In
Create Account

Back to top









