Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Simple but handy short code to Convert lowercase l...
Author:
JD
E-mail:
Click to e-mail author
Submitted:
11/28/2002
Version:
VB6
Compatibility:
VB6
Category:
Miscellaneous
Views:
8249
Simple but handy short code to Convert lowercase letters to UPPERCASE letters if needed in text box.
Declarations:
'Just add 2 text box's to a form and you will get the idea.
Code:
Private Sub Text1_KeyPress(KeyAscii As Integer) Call ConvUpcase(KeyAscii) End Sub Private Sub Text2_KeyPress(KeyAscii As Integer) Call ConvUpcase(KeyAscii) End Sub Private Sub ConvUpcase(keyvalue As Integer) If keyvalue >= 97 And keyvalue <= 122 Then keyvalue = keyvalue - 32 End If End Sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement