How can I make a string to be Sentence Case?

In vb.net you can convert a string to be upper or lower
by using string.toupper or string.toLower


Does anybody know if there is a function that make your string to be sentence case.

Suppose you have a txtSurname text box

and whenever the user input a surname (SMITH) YOU WANT TO TO CONVERT IT TO (Smith)change the first Letter to Capital and remaining to lower.

Any suggestions?

Thanks
Gabriel
Gabriel_BrienzaAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
RichWConnect With a Mentor Commented:
StrConv("washington", vbProperCase) will convert to Washington.

I think this is what you're looking for.
RichW
0
 
Gabriel_BrienzaAuthor Commented:
Thanks a lot
That was exactly what I was looking for.

Gabriel
0
 
RichWCommented:
Glad I could help.  I was happy to see that they added this function to VB.

RichW
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.