Convert First letters to uppercase .Net

Posted by beakersoft | Posted in Programming | Posted on 01-01-2007

0


First of all happy new year to everyone. Probably like most people I started the year with a hangover. Not helped by the fact I had to get up at half 8 to take my girlfriend to work!

Just a quick post for something useful I found, I wanted to change a name (ie joe bloggs) so that the first letters would be upper case. I found the VbStrConv class. It contains lots of good methods for string manipulation.
The one I needed was VbStrConv.ProperCase

Dim strNameAs String = “joe bloggs”
strNameAs = StrConv(strNameAs , VbStrConv.ProperCase)

Write a comment

Comments links could be nofollow free.