Allow only upper case letters in text box

R

Richard Keller

How can I only allow user to enter upper case letters
into a text box, and if he enters a lower case letter,
change it to upper case.

in vb6 I would use the keypress event and change the key
to upper case, but in .net the key is read only.
 
H

Herfried K. Wagner [MVP]

* "Richard Keller said:
How can I only allow user to enter upper case letters
into a text box, and if he enters a lower case letter,
change it to upper case.

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

Top