Martha works as a Software Developer for NetCom Inc. She develops an application, named App1, using Visual Studio .NET. The application contains a form, named MyForm1. MyForm1 contains several controls including a TextBox, named txtDOB. The txtDOB control is used to accept the date of birth from a user. In order to ensure that a user enters a valid date in txtDOB, Martha adds validation logic to the Validating event of txtDOB. When she tests the form by using some invalid dates in txtDOB, the validation logic does not appear to be working as expected. What is the most likely cause of the issue?
A. Martha has set the Locked property of txtDOB to True.
B. Martha has set the CausesValidation property of txtDOB to False.
C. Martha has set the SuppressValidation property of txtDOB to True.
D. Martha has set the TabIndex property of txtDOB to 0.
Answer:B
Martha works as a Software Developer for NetCom Inc. She develops an application, named App1, using Visual Studio .NET. The application contains a form, named MyForm1. MyForm1 contains several controls including a TextBox, named txtDOB. The txtDOB control is used to accept the date of birth from a user. In order to ensure that a user enters a valid date in txtDOB, Martha adds validation logic to the Validating event of txtDOB. When she tests the form by using some invalid dates in txtDOB, the validation logic does not appear to be working as expected. What is the most likely cause of the issue?
A. Martha has set the Locked property of txtDOB to True. B. Martha has set the CausesValidation property of txtDOB to False. C. Martha has set the SuppressValidation property of txtDOB to True. D. Martha has set the TabIndex property of txtDOB to 0.