Upper Case

VBOfficer

Member
Joined
Jan 22, 2009
Messages
23
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" shouldnt 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
Code:
System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase

This will case according to your cultures rules but I dont think it special cases words like of etc.
 
Back
Top