VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



To convert all character that is typed to upperacase automatically

by AJALA QUADRI (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 24th May 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

To convert all character that is typed to upperacase automatically

Rate To convert all character that is typed to upperacase automatically



'just place a textbox control on your form, and name it txtTest
'add the following code into its KeyPress event
Private Sub txtTest_KeyPress(KeyAscii As Integer)
    If KeyAscii >= 90 And KeyAscii <= 122 Then
        KeyAscii = KeyAscii - 32
    Else
        KeyAscii = 0
    End If
End Sub

Download this snippet    Add to My Saved Code

To convert all character that is typed to upperacase automatically Comments

No comments have been posted about To convert all character that is typed to upperacase automatically. Why not be the first to post a comment about To convert all character that is typed to upperacase automatically.

Post your comment

Subject:
Message:
0/1000 characters