Link to home
Start Free TrialLog in
Avatar of Gabriel_Brienza
Gabriel_Brienza

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of RichW
RichW
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Gabriel_Brienza
Gabriel_Brienza

ASKER

Thanks a lot
That was exactly what I was looking for.

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

RichW