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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top