If I have a string "HELLO WORLD"
How can I lowercase every letter after the first one but keep the camel casing so: I get:
Hello World
If I have a string "HELLO WORLD"
How can I lowercase every letter after the first one but keep the camel casing so: I get:
Hello World
System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase("HELLO WORLD".ToLower())
You might want to take a look at this class in the .NET Framework
System.Globalization.TextInfo.ToTitleCase()
http://msdn.microsoft.com/en-us/library/system.globalization.textinfo.totitlecase.aspx
"Generally, title casing converts the first character of a word to uppercase and the rest of the characters to lowercase...."
You might have to do a .ToLower() first according to the docs.
There is an option to convert a string to title casing, in vb.net.
Try this code. It should work fine.
Dim title as String = "converted to title case"
Console.WriteLine(StrConv(title, VbStrConv.ProperCase))
Try this:
StrConv("SOME TEXT TO CONVERT", VbStrConv.ProperCase)
Also check out this article with better code examples: