nerdexam
Microsoft

98-361 · Question #36

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
  • BLeave
  • CFormClosed
  • DFormClosing

How the community answered

(22 responses)
  • A
    5% (1)
  • B
    9% (2)
  • C
    5% (1)
  • D
    82% (18)

Explanation

The Closing event occurs as the form is being closed.

Topics

#Windows Forms#FormClosing event#event handling#UI

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice