Make a Textbox Display Characters in a Particular Case

Making a textbox display its characters in a particular case (upper, lower, or title) is very easy with the help of the CharacterCasing property, which uses the values of the enum Forms.CharacterCasing.

In the following example, CharacterCasing is used to display all typed characters in uppercase:

textBox1.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;

You can also set this at design time.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist