OK Icon of modal form

  • Thread starter Thread starter David
  • Start date Start date
D

David

Hello.
What DialogResult is returned when I click on "OK" icon of dialog form at
right top curner?
How can I control "OK" icon clicking?
 
DialogResult.OK?

Why would you ever check this? Isn't the only time the "OK" button is
displayed in the corner is what you only have the OK button on the dialog?
(I.E. MessageBoxButtons.OK)

What do you mean by "control"? On message boxes, clicking on any button
closes the form down, and after setting the DialogResult to the appropriate
value. If you wish some other event to occur, then it would be easier to
write your own message box.

Dan.
 
Back
Top