xtd - Reference Guide  0.1.0
Modern c++17 framework to create console, gui and unit test applications on Windows, macOS and Linux.

§ dialog_result() [1/2]

forms::dialog_result xtd::forms::button::dialog_result ( ) const

Gets the value returned to the parent form when the button is clicked.

One of the DialogResult values.
When a form is shown as a dialog box using the show_dialog method and one of its buttons is clicked, the button's dialog_result value is assigned to the form's dialog_result property.

Implements xtd::forms::ibutton_control.