Form.UpdateDefaultButton Method ()
.NET Framework (current version)
Updates which button is the default button.
System.Windows.Forms (in System.Windows.Forms.dll)
protected override void UpdateDefaultButton()
The UpdateDefaultButton method determines which button on the form raises its Click event when the user presses ENTER, according to the following priority:
If the ActiveControl property implements the IButtonControl interface, that control is the default button.
The AcceptButton property is the default button.
Return to top
Available since 1.1