|
|
|
Keyboard & Mouse Interface |
If the button control has the input focus, pressing the space bar will fire the Click event.
If the drop down button is available (see ShowDropDown) and the button control has the input focus, pressing the Alt key and the down arrow key at the same time will fire the DropDownClick event.
If the user types Alt plus the defined accelerator key, the Click event occurs.
If the button is the form's or dialog's default button, pressing the Return key will fire the Click event.
By clicking and releasing the left mouse button on the button (button portion), the Click event will fire. If the mouse button is double-clicked, the DblClick event occurs. The MouseDown, MouseUp and MouseDblClk events can also occur, reflecting the actual mouse button status, but only the Click or DblClick events should be used to determine if a button has been pressed.
By clicking and releasing the left mouse button on the drop down button, the DropDownClick event will fire. Based on the DropDownDownClick property, the event fires as the mouse button is pressed or released. If the mouse button is double-clicked, the DropDownDblClick event occurs. The MouseDown, MouseUp and MouseDblClk events can also occur, reflecting the actual mouse button status, but only the DropDownClick or DropDownDblClick events should be used to determine if a drop down button has been pressed.