Click here to Skip to main content
11,437,638 members (30,015 online)
Click here to Skip to main content
Alternative Tip/Trick

Tagged as

Convert text to TitleCase

, 23 Feb 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("en-US");
<big>System.Globalization.TextInfo myTextInfo = ci.TextInfo;</big>
string sampleStr = "this IS a sample text"; 
string titleStr = myTextInfo.ToTitleCase(sampleStr);


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Palash Biswas
Software Developer Kovair Inc.
India India
I have started programming in 10 years on Fortran 77.Then it was Cobol,C,C++,JAVA 1.2, ASP,JavaScript. Now it at all C# and .NET Framework, such tehnologies as WCF, ADO.NET, ASP.NET, LINQ, ASP.NET Ajax , FLEX and another.

Comments and Discussions

GeneralReason for my vote of 3 Same problem as the original method ... Pin
yannduran23-Aug-11 19:19
memberyannduran23-Aug-11 19:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150506.1 | Last Updated 23 Feb 2010
Article Copyright 2010 by Palash Biswas
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid