C#: How do you send OK or Cancel return messages of dialogs when not using buttons?
How would you return the OK message in the condition of a textbox that will proce
Set the form's DialogResult:
DialogResult
this.DialogResult = DialogResult.OK; this.Close();
This would cause any opener that opened this form with ShowDialog() to get the given DialogResult as the result.
ShowDialog()