What does the DialogResult property of a Button control do?

The DialogResult property retrieves or sets a value that is returned to the parent form when the button is clicked.