Making a TextBox values all upper-case or lower-case characters in WPF

vishalneeraj-24503
Posted by vishalneeraj-24503 under WPF category on | Points: 40 | Views : 689
We can use Textbox CharacterCasing property and CharacterCasing enum values as shown below:-

public enum CharacterCasing
{
Normal = 0,
Upper = 1,
Lower = 2,
}

//For Upper case letter:-
textBox1.CharacterCasing = CharacterCasing.Upper;

//For Lower case letter:-
textBox2.CharacterCasing = CharacterCasing.Lower;

Comments or Responses

Login to post response