Habanero.Faces.Win.ButtonGroupControlWin.SetDefaultButton C# (CSharp) Method

SetDefaultButton() public method

Sets the default button in this control that would be chosen if the user pressed Enter without changing the focus
public SetDefaultButton ( string buttonName ) : void
buttonName string The name of the button
return void
        public void SetDefaultButton(string buttonName)
        {
            Form form = this.FindForm();
            if (form != null) form.AcceptButton = (Button)this[buttonName];
        }