vbCoders Guest



Don't have an account yet? Register
 


Forgot Password?



* This Code is to Convert Only the First Character Being Entered in the TextBox Control to an Upper

by Osama Jamal Ashhab (1 Submission)
Category: String Manipulation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 15th May 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

* This Code is to Convert Only the First Character Being Entered in the TextBox Control to an Upper Case Letter. * This is Usefull while

Rate * This Code is to Convert Only the First Character Being Entered in the TextBox Control to an Upper




Private Sub Text1_KeyPress(KeyAscii As Integer)
   If Len(Text1) = 1 Then
       KeyAscii = Asc(UCase(Chr(KeyAscii)))
   End If
End Sub

Download Snippet Download this snippet   Add to My Save List Add to My Saved Code

* This Code is to Convert Only the First Character Being Entered in the TextBox Control to an Upper Comments

No comments have been posted about * This Code is to Convert Only the First Character Being Entered in the TextBox Control to an Upper. Why not be the first to post a comment about * This Code is to Convert Only the First Character Being Entered in the TextBox Control to an Upper.

Post your comment

Subject:
Message:
0/1000 characters