Tech Off Post

Single Post Permalink

View Thread: ShowDialog() return values (in C#)
  • User profile image
    mabster

    Simply set the form's DialogResult property:

    this.DialogResult = DialogResult.OK;

    Then you can close the form using Close() as normal.