#941 – Forcing Uppercase or Lowercase in a TextBox

If you want to limit a user to entering only uppercase or only lowercase in a particular TextBox, you can set the CharacterCasing property as follows:

  • Normal – Default setting, allows both uppercase and lowercase
  • Lower – Force all entered text to lowercase
  • Upper – Force all entered text to uppercase

This setting impacts text typed or pasted into the TextBox.  It does not convert text set through code or via data binding.

With CharacterCasing=”Lower”:


With CharacterCasing=”Upper”:




About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: