Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Force uppercase
Message
 
To
09/06/1999 14:38:00
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00228055
Message ID:
00228061
Views:
14
>Should be an easy one: how can I force the user to enter only uppercase letters in a text box?

Use the KeyPress event to change the case.
Private Sub Text1_KeyPress(KeyAscii As Integer)
KeyAscii = Asc(UCase$(Chr$(KeyAscii)))
End Sub
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform