T
Tom Bean
I'm using ShowDialog() to display a form as a modal dialog box. I have set
the form's minimizeBox property to true, however, the emulator always shows
an 'OK' button in the upper right-hand corner. According to the
documentation, this setting should result in an 'X' button being displayed.
When the user dismisses the form by clicking the 'OK' button, I display a
'YesNoCancel' MessageBox in the Closing event handler to determine what
DialogResult to return. If 'No' is selected, I set the form's DialogResult
property to 'Cancel', however, ShowDialog() always returns 'OK'.
What do I need to do to have the DialogResult, returned by ShowDialog(), be
the value I set it to in OnClosing()?
My application is written in C# in Visual Studio .NET 2003.
Thanks,
Tom
the form's minimizeBox property to true, however, the emulator always shows
an 'OK' button in the upper right-hand corner. According to the
documentation, this setting should result in an 'X' button being displayed.
When the user dismisses the form by clicking the 'OK' button, I display a
'YesNoCancel' MessageBox in the Closing event handler to determine what
DialogResult to return. If 'No' is selected, I set the form's DialogResult
property to 'Cancel', however, ShowDialog() always returns 'OK'.
What do I need to do to have the DialogResult, returned by ShowDialog(), be
the value I set it to in OnClosing()?
My application is written in C# in Visual Studio .NET 2003.
Thanks,
Tom