Form.UpdateDefaultButton Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Updates which button is the default button.
protected:
override void UpdateDefaultButton();
protected override void UpdateDefaultButton ();
override this.UpdateDefaultButton : unit -> unit
Protected Overrides Sub UpdateDefaultButton ()
Remarks
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.
Applies to
See also
Col·laboreu amb nosaltres a GitHub
La font d'aquest contingut es pot trobar al GitHub, on també podeu crear i revisar problemes i sol·licituds d'extracció. Per obtenir més informació, consulteu la nostra guia per a col·laboradors.