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...

Re: Bug in MessageBox.Show by Uri

Uri
Sun Apr 18 10:45:44 CDT 2004

you asked for a messagebox with only an OK button - what did you expect?
a Cancel value?

agro_r wrote:

> 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...
>

re:Bug in MessageBox.Show by agro_rachmatullah

agro_rachmatullah
Mon Apr 19 21:36:22 CDT 2004

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.