find total number of characters entered in a textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • meryline
    New Member
    • May 2007
    • 1

    find total number of characters entered in a textbox

    hi,
    iam new to c#, can any one tell me how to find the total number characters entered in a textbox. like in vb.net i find it using len(textbox.tex t) .
    iam trying to implement the same in c# sharp as well. but don't know the exact keyword.
    any help would be appreciated.

    Thanks
    Regards
    Meryline
  • Rathorevivek
    New Member
    • Dec 2006
    • 17

    #2
    Originally posted by meryline
    hi,
    iam new to c#, can any one tell me how to find the total number characters entered in a textbox. like in vb.net i find it using len(textbox.tex t) .
    iam trying to implement the same in c# sharp as well. but don't know the exact keyword.
    any help would be appreciated.

    Thanks
    Regards
    Meryline
    Hi Mery,

    Try out:
    TextBox1.Text.L ength.ToString( );

    Thanks,
    Vivek

    Comment

    Working...