Upper Case

VBOfficer

Newcomer
Joined
Jan 22, 2009
Messages
24
Hi,
How can I convert the first letter of each word in a sentence to upper case?
I cannot simply use .ToUpper because some words like "of" shouldn't be converted.
Is there an internal function in VB.NET FW2 which do it for me automatically?
Capitalization I mean.
Thanks :)
 
The only one I am aware of is
Visual Basic:
System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase

This will case according to your culture's rules but I don't think it special cases words like 'of' etc.
 
Back
Top