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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top