New Year Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

GIAC GIAC Secure Software Programmer - C#.NET GSSP-NET-CSHARP Question # 36 Topic 4 Discussion

GIAC GIAC Secure Software Programmer - C#.NET GSSP-NET-CSHARP Question # 36 Topic 4 Discussion

GSSP-NET-CSHARP Exam Topic 4 Question 36 Discussion:
Question #: 36
Topic #: 4

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.


A.

Create an event handler named verifyDate for the Validating event of datePick.


B.

Create an event handler named verifyDate for the Validated event of datePick.


C.

In the verifyDate event handler, call errorPro.SetError(datePick, "Date is greater then today's date") if the value of datePick value is greater than today's date.


D.

In the verifyDate event handler, call errorPro.SetError(datePick, "") if the datePick.Value is greater than today's date.


Get Premium GSSP-NET-CSHARP Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.