Textbox Writing

  • Thread starter Thread starter Greg B
  • Start date Start date
G

Greg B

Hi,

I am wondering what code would i use to have the first letter of a textbox
be changed to a capital letter?

i am using the text boxes firstname & surname as the textboxes

Thanks in advance

Greg B
 
Only the first letter?

TextBox1.Text = UCase(Mid(TextBox1.Text, 1, 1)) & Mid(TextBox1, 2)

Rick
 
Thanks rick
Yes just for the names

Greg
Rick Rothstein (MVP - VB) said:
Only the first letter?

TextBox1.Text = UCase(Mid(TextBox1.Text, 1, 1)) & Mid(TextBox1, 2)

Rick
 
Back
Top