You can use the CharacterCasing property of the TextBox control in .net to change the case of characters as required by your application. For example,
you could change the case of all characters entered in a TextBox control used for username and password. When user can enter some textbox in both textbox, these textbox automatically change the text into upper case.
This example requires two textbox (txtUsername, txtPassword) and one button(see in the picture).
we can set the CharacterCasing property of the TextBox control through designer window as well as code.
txtUsername.CharacterCasing = CharacterCasing.Upper txtPassword.CharacterCasing = CharacterCasing.Upper
txtUsername.CharacterCasing = CharacterCasing.Upper; txtPassword.CharacterCasing = CharacterCasing.Upper;