Bug in MessageBox.Show

  • Thread starter Thread starter agro_r
  • Start date Start date
A

agro_r

Try to run this code:


Console.WriteLine(MessageBox.Show("text",
"title", MessageBoxButtons.OK));


When the message box appear, click on the close (x) button. The
result returned will be DialogResult.OK.

Can you confirm it on your computer?

Thanks a lot...
 
you asked for a messagebox with only an OK button - what did you expect?
a Cancel value?
 
Gee, after some more thinking I guess you were right. MessageBox with
only the OK button is supposed to be just a simple notification
anyway.
 
Back
Top