locked
Textbox character restrictions in S2 B2 RRS feed

  • Question

  • How to restrict the length of the textbox? I would like to allow for 1 character input only. Any ideas? Thank you!

    Adam Wawrzyniak
    Wednesday, July 9, 2008 2:26 PM

Answers

  • Howdy,

    Add your textbox, and then open the properties tab. In the property search box, type in Length and you should see a property that allows you to specify the max length.

    Cheers
    Learn Expression Blend at learnexpressionstudio.com -- my blog : http://x-coders.com/blogs/sneaky/default.aspx
    Thursday, July 10, 2008 10:01 AM
    Moderator

All replies

  • Howdy,

    Add your textbox, and then open the properties tab. In the property search box, type in Length and you should see a property that allows you to specify the max length.

    Cheers
    Learn Expression Blend at learnexpressionstudio.com -- my blog : http://x-coders.com/blogs/sneaky/default.aspx
    Thursday, July 10, 2008 10:01 AM
    Moderator
  •  Thank you Brennon, you are right, there is a property MaxLength for specifing the max number of characters. Somehow I confused this one with the MaxWidth of the Textbox :)

    Thank you again!
    Adam
    Thursday, July 10, 2008 2:26 PM
  • Youre very Welcome Adam, glad I could help.

    Cheers

    Expression MVP

    Learn Expression Blend at learnexpressionstudio.com

    my blog : http://x-coders.com/blogs/sneaky/default.aspx

    Thursday, July 10, 2008 2:44 PM
    Moderator