|
-
May 6th, 2001, 06:05 AM
#1
Thread Starter
Fanatic Member
Very Simple Question...
How do i make a text box convert whatever is typed into it upper case, while it is being changed?
-
May 6th, 2001, 06:08 AM
#2
try:
Code:
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii > 96 And KeyAscii < 123 Then
KeyAscii = KeyAscii - 32
End If
End Sub
-
May 6th, 2001, 06:10 AM
#3
Thread Starter
Fanatic Member
-
May 6th, 2001, 06:11 AM
#4
Frenzied Member
Simpler:
Code:
Private Sub Text1_Change()
Text1.Text = StrConv(Text1.Text, vbUpperCase)
End Sub
-
May 6th, 2001, 06:19 AM
#5
Thread Starter
Fanatic Member
-
May 6th, 2001, 06:36 AM
#6
_______
<?>
...or
Code:
Private Sub Text1_KeyPress(KeyAscii As Integer)
KeyAscii = Asc(UCase(Chr(KeyAscii)))
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
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
|