Default Property
Description
Gets or sets a value that determines which Push Button control is the default Push Button of a form.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property Default() As Boolean
Remarks
The push button with Default set to True will have a darker border around it to indicate that it is the default button.
- Only one push button on a form can be the default push button.
- When Default is set to True for one push button, it's automatically set to False for all other push buttons on the form.
- When the push button's Default property setting is True and its parent form is active, the user can choose the push button (invoking its Click event) by pressing ENTER.
- Any other control with focus doesn't receive a keyboard event (KeyDown, KeyPress, or KeyUp) for the ENTER key unless the user has moved the focus to another push button on the same form. In this case, pressing ENTER chooses the push button that has the focus instead of the default push button.
See Also
| Suite Pro Controls ActiveX Control v24.0
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.