Text box to show characters in uppercase

How can a text box be enforced to show characters in the uppercase?

E

Expert

Verified

TextBox class holds the CharacterCasing property that is used for specifing the case of the content for a text box. This property takes a value from the CharacterCasing enumeration of .NET Framework. Members defined in the CharacterCasing enumeration are Upper, Lower, and Normal. Any one of these enumerations can be selected as a value for the CharacterCasing property of a indicated text box, as shown in the given code:

textBox1.CharacterCasing = CharacterCasing.Upper;

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.