Best way to make all text Uppercase

2 posts, 0 answers
  1. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 15 Jun 2011 Link to this post

    What would be the best way to make everything uppercase?  So even if the user types in lower case, it gets converted to upper case.

    Would I do it in the DocumentContentChanged and move the cursor around?  Or is there an easier way?
  2. Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 17 Jun 2011 Link to this post

    Hello Dan Parker,

    Unfortunately, you cannot convert the text to upper case while the typing occurs. The solution would have been to handle the PreviewKeyDown event and check if Shift is pressed and CapsLock is on. You can find out about the Shift, but the CapsLock's state is out of reach.
    The other approach - handling the DocumentContentChanged event will not work, as it is fired with some delay.

    All the best,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top