query

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2008
Posts: 39
Reputation: arunasingh is an unknown quantity at this point 
Solved Threads: 0
arunasingh arunasingh is offline Offline
Light Poster

query

 
0
  #1
Feb 21st, 2009
sir,

Can u please tell me how to make first letter capital and rest small in textbox
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: query

 
0
  #2
Feb 21st, 2009
  1. Dim Phrase As String = "this is a test"
  2. Dim TextArray As String() = Nothing
  3. Dim Word As String
  4. Dim NewString As String
  5. TextArray = Phrase.Split(" ")
  6. For Each Word In TextArray
  7. NewString = NewString & (Word.Substring(0, 1).ToUpper() & Word.Substring(1, Word.Length
  8. - 1).ToLower() & " ")
  9. Next Word
Or
See this link :
http://msdn.microsoft.com/en-us/library/aa332127.aspx
Last edited by Jx_Man; Feb 21st, 2009 at 10:54 am.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC