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?

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
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


More MCQS Questions and answers

R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!