What is the best way to force characters keyed into a TextBox to upper case?

  • Thread starter Thread starter BoomBoom
  • Start date Start date
B

BoomBoom

I tried trapping on the TextChanged event and doing a ToUpper, however the
cursor behavior doesn't work correctly when doing this (it goes to the start
of the text).

Is there an elegant way to do this?
 
* "BoomBoom said:
I tried trapping on the TextChanged event and doing a ToUpper, however the
cursor behavior doesn't work correctly when doing this (it goes to the start
of the text).

Set the textbox's 'CharacterCasing' property to 'Upper'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top