Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
On any Windows Form, you can designate a Button control to be the cancel button. A cancel button is clicked whenever the user presses the ESC key, regardless of which other control on the form has the focus. Such a button is usually programmed to enable the user to quickly exit an operation without committing to any action.
To designate the cancel button
Set the form's CancelButton property to the appropriate Button control.
Private Sub SetCancelButton(ByVal myCancelBtn As Button) Me.CancelButton = myCancelBtn End Subprivate void SetCancelButton(Button myCancelBtn) { this.CancelButton = myCancelBtn; }private: void SetCancelButton(Button ^ myCancelBtn) { this->CancelButton = myCancelBtn; }
See Also
CancelButton
Button Control Overview
Ways to Select a Windows Forms Button Control
How to: Respond to Windows Forms Button Clicks
How to: Designate a Windows Forms Button as the Accept Button
Button Control