VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Make Uppercase or lowercase in Textbox

by សុខា (1 Submission)
Category: String Manipulation
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

how to Make Uppercase or lowercase in Textbox

Rate Make Uppercase or lowercase in Textbox

'This to change it to Uppercase while typing
Private Sub Text1_KeyPress(KeyAscii As Integer)
  KeyAscii = Asc(UCase(Chr(KeyAscii)))
End Sub
'This to change it to Lower case while typing
Private Sub Text1_KeyPress(KeyAscii As Integer)
  KeyAscii = Asc(LCase(Chr(KeyAscii)))
End Sub

Download this snippet    Add to My Saved Code

Make Uppercase or lowercase in Textbox Comments

No comments have been posted about Make Uppercase or lowercase in Textbox. Why not be the first to post a comment about Make Uppercase or lowercase in Textbox.

Post your comment

Subject:
Message:
0/1000 characters