Posted by : Jebastin Tuesday 7 January 2014

The following C# code is used to convert all first letters of a sentence into upper case and rest of the letters into lower case.
  1. string s = "THIS IS MY TEXT RIGHT NOW";
  2. s = System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(s.ToLower());
  3. // (or)
  4. s = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(s.ToLower());

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Link To This Post/Page

Spread The Word

Add this button to your blog:
JJ Technology Solutions

Blog Archive

Trackers

eXTReMe Tracker
facebook

- Copyright © JJ Technology Solutions - Powered by Source Code Solutions -