public string ShowDialog(string comment) { CommentTB.Text = comment; // display the dialog. if (ShowDialog() != DialogResult.OK) { return null; } return CommentTB.Text; } #endregion