title: Easiest way to create a custom dialog box which returns a value?
body: <p>I want to create a custom dialog box for my C# project. I want to have a DataGridView in this custom dialog box, and there will also be a button. When the user clicks this button, an integer value is returned to the caller, and the dialog box then terminates itself.</p>
  <p>How can I achieve this?</p>