Which event should you handle?

You are creating an application that presents the user with a Windows Form. You need to
configure the application to display a message box to confirm that the user wants to close
the form.
Which event should you handle?

You are creating an application that presents the user with a Windows Form. You need to
configure the application to display a message box to confirm that the user wants to close
the form.
Which event should you handle?

A.
Deactivate

B.
Leave

C.
FormClosed

D.
FormClosing

Explanation:
The Closing event occurs as the form is being closed.



Leave a Reply 2

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


mandisa

mandisa

D is the correct answer of which its FormClosing

DB7

DB7

D: FormClosing offers the user the option to cancel the closing operation, therefore is best suited for Closing confirmation.