Click here to Skip to main content
15,899,124 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Does anyone know how I can format the first char of each word in a string to upper case except for roman numerals? The line of code I am using:

MIDL
fmtedTxt = new System.Globalization.CultureInfo("en").TextInfo.ToTitleCase(txtTitle.Text.ToLower());


This will turn a string "richard III" into "Richard Iii".

Anyone know how to fix this in c#?

Thanks in advance.
Posted

1 solution

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900