Hi Everyone,
How do you force all text being inputed (by a user) into a text box to be uppercase?
Printable View
Hi Everyone,
How do you force all text being inputed (by a user) into a text box to be uppercase?
Note that in case of control & paste the text in the textbox won't be converted.vb Code:
private sub myTextBox_KeyUp(sender as object, e as KeyEventArgs) myTextbox.text = myTextBox.Text.toUpper() end sub
To do so , write the line in the above sub in the textChangedged event of the textbox
Hi talkro,
I entered your code, but now when I enter data into the text box the data is being entered reversed.
Set the CharacterCasing property of the textbox to Upper.
oh cool. Thanks Ideas Man. That is even better. Thank you.