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'.
 
Back
Top