Microsoft
98-361 · Question #195
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…
The correct answer is D. FormClosing. The Closing event occurs as the form is being closed.
Understanding Desktop Applications
Question
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?
Options
- ADeactivate
- BFormClosed
- CLeave
- DFormClosing
How the community answered
(29 responses)- A10% (3)
- B3% (1)
- C3% (1)
- D83% (24)
Explanation
The Closing event occurs as the form is being closed.
Topics
#Windows Forms events#FormClosing#event handling#UI lifecycle
Community Discussion
No community discussion yet for this question.