by Rajesh Sivaraman (4 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 16th January 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)
A code snippet which converts the first characters of the first name, middle name and last name into upper case automatically. Hope everyone
Private Sub Text1_KeyPress(KeyAscii As Integer)
If Text1.Text = "" Then
KeyAscii = Asc(UCase(Chr(KeyAscii)))
ElseIf Text1.Text <> "" Then
If tmp = 32 Then
KeyAscii = Asc(UCase(Chr(KeyAscii)))
Else
KeyAscii = KeyAscii
End If
tmp = KeyAscii
End If
End Sub
No comments have been posted about A code snippet which converts the first characters of the first name, middle name and last name int. Why not be the first to post a comment about A code snippet which converts the first characters of the first name, middle name and last name int.