Property dialog.DefaultButton Overload Specifies which button responds to the Enter key. If 0 or not set, auto-selects. public int DefaultButton { set; } Property Value int Button id.