C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Convert a string into Title Case or ProperCase


Posted Date: 08 Mar 2007    Resource Type: Code Snippets    Category: String Manipulations

Posted By: Balamurali Balaji       Member Level: Diamond
Rating:     Points: 10



String class in .NET Framework supports only uppercase and lowercase conversions. To convert a string into Title Case (ProperCase) string, you may have to use the following code.



string s = "welcome to title case";
Console.WriteLine(Microsoft.VisualBasic.Strings.StrConv(s, VbStrConv.ProperCase,0));



The output of the above code is as follows:

Welcome To Title Case




Responses

Author: Sukumar Krish    29 Sep 2008Member Level: Bronze   Points : 1
Thanks. The suggestion worked out for me. In C# there is the method ToTitleCase available but in Vb.Net only upper or lower case conversion is possible.


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: How to use URI
Previous Resource: StringTokenizer using C#
Return to Discussion Resource Index
Post New Resource
Category: String Manipulations


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

it outsourcing

Contact Us    Privacy Policy    Terms Of Use