You have designed a logon form with two TextBox controls named txtUserName and txtpassword. You want to ensure that the user can enter only lowercase characters in the controls. Which of the following solutions will fulfill this requirement using the simplest method?
1.Program the KeyPress event of the TextBox controls to convert uppercase letters to lowercase letters
2.Create a single event handler that is attached to the KeyPress event of the form. Program this event handler to convert the uppercase letters to lowercase ones.
3.Set the CharacterCasing property of the Textbox controls to Lower.
4.Use the CharacterCasing method of the controls to convert the letters to lowercase letters
Posted Date:-2022-02-02 14:12:49