locked
uppercase property for button RRS feed

  • Question

  • how do i set a button's property so that the text is uppercase?
    Tuesday, January 6, 2009 1:18 AM

Answers

  • There is no upper case property for the button, you have to type manually. else add the following code in window constructor

    b1.Content = b1.Content.ToString().ToUpper();

      where b1 is the button name.

    usually button content will have one or few words so there is no much optons provided.


    Prasad - www.beautifulmind.blog.co.in
    • Proposed as answer by prasad22 Tuesday, January 6, 2009 2:36 AM
    • Marked as answer by bryanc Tuesday, January 6, 2009 6:35 AM
    Tuesday, January 6, 2009 2:36 AM

All replies

  • There is no upper case property for the button, you have to type manually. else add the following code in window constructor

    b1.Content = b1.Content.ToString().ToUpper();

      where b1 is the button name.

    usually button content will have one or few words so there is no much optons provided.


    Prasad - www.beautifulmind.blog.co.in
    • Proposed as answer by prasad22 Tuesday, January 6, 2009 2:36 AM
    • Marked as answer by bryanc Tuesday, January 6, 2009 6:35 AM
    Tuesday, January 6, 2009 2:36 AM
  • sucks. especially given that html has a construct for this.
    Tuesday, January 6, 2009 6:35 AM