Skip to main content
A newer version of this page is available. .

BaseButton.PerformClick() Method

Responds to button clicks.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

public void PerformClick()

Remarks

This method implements the PerformClick method of the IButtonControl interface. The PerformClick method can be used when it is needed, for instance, to raise the Click event. By default, it is called for the button that has focus, or for the default button (if no other button has focus) when the user presses the ENTER or SPACE key. This method is also called when the user presses the ESC key if the button is set as the cancel button. Use the form’s AcceptButton and CancelButton properties to specify which buttons on a form should act like default (accept) and cancel buttons respectively.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PerformClick() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also