Wednesday, 20 August 2008

To convert Text into Title Case..

Use following Name Spaces
-------------------------------------------------------------
using System.Globalization;
using System.Threading;
------------------------------------------------------------


CultureInfo cultureInfo = Thread.CurrentThread.CurrentCulture;
TextInfo textInfo = cultureInfo.TextInfo;
Label1.Text = textInfo.ToTitleCase(txttext.Text);

No comments: