Daniel,
In addition to the other comments.
I normally set the Button.DialogResult to DialogResult.Ok for buttonOk, then
set Button.DialogResult to DialogResult.Cancel for buttonCancel.
Then I set the Form.AcceptButton to buttonOk and Form.CancelButton to
buttonCancel.
Where buttonOk & buttonCancel are button controls on my form.
Note: buttonOk & buttonCancel can actually be any control that implements
IButtonControl, such as a user control that behaves like a button...
Hope this helps
Jay
"Daniel" <so*******************@yahoo.com> wrote in message
news:OJ**************@TK2MSFTNGP14.phx.gbl...
what do you have to do in a C# dialog so that it returns to ShowDialog as
DialogResult.OK ?