GSSP-NET · Question #369
You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create a Windows application using the .NET Framework. The…
The correct answer is A. Create an event handler named verifyDate for the Validating event of datePick. D. In the verifyDate event handler, call errorPro.SetError(datePick, "") if the datePick.Value is. See the full explanation below for the reasoning.
Question
You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create a Windows application using the .NET Framework. The application contains many controls. You add an ErrorProvider component named errorPro and a DateTimePicker control named datePick to the application. You are required to configure the application to display an error notification icon next to datePick when a user enters a date that is greater than today's date. What will you do to accomplish this task? Each correct answer represents a part of the solution. Choose two.
Options
- ACreate an event handler named verifyDate for the Validating event of datePick.
- BCreate an event handler named verifyDate for the Validated event of datePick.
- CIn the verifyDate event handler, call errorPro.SetError(datePick, "Date is greater then
- DIn the verifyDate event handler, call errorPro.SetError(datePick, "") if the datePick.Value is
How the community answered
(28 responses)- A79% (22)
- B14% (4)
- C7% (2)
Community Discussion
No community discussion yet for this question.