What should you do?

You are creating a Windows application by using the .NET Framework 3.5.
The application contains a form that has 10 data entry controls.
When the user presses the F1 key, help information for the selected control must be displayed.
You need to create an event handler to display the help information by using a sender parameter.
What should you do?

You are creating a Windows application by using the .NET Framework 3.5.
The application contains a form that has 10 data entry controls.
When the user presses the F1 key, help information for the selected control must be displayed.
You need to create an event handler to display the help information by using a sender parameter.
What should you do?

A.
Create a handler for the KeyPress event of the form.

B.
Create a handler for the KeyDown event of the form.

C.
Create a single handler for the KeyDown event of all controls.

D.
Create a single handler for the KeyPress event of all controls.



Leave a Reply 0

Your email address will not be published. Required fields are marked *