Defines whether the drop down portion is shown when the control receives the input focus.
Get
| C# | bool Boolean = object.DropOnFocus; |
| VB.NET | Boolean = object.DropOnFocus As Boolean |
| C++ | VARIANT_BOOL Boolean = object->DropOnFocus; VARIANT_BOOL Boolean = object->GetDropOnFocus(); |
| C | HRESULT object->get_DropOnFocus(VARIANT_BOOL* Boolean); |
| VB | Boolean = object.DropOnFocus As Boolean |
Put
| C# | bool object.DropOnFocus = Boolean; |
| VB.NET | object.DropOnFocus = Boolean As Boolean |
| C++ | VARIANT_BOOL object->DropOnFocus = Boolean; void object->PutDropOnFocus(VARIANT_BOOL Boolean); |
| C | HRESULT object->put_DropOnFocus(VARIANT_BOOL Boolean); |
| VB | object.DropOnFocus = Boolean As Boolean |
object
Boolean
Defines whether the drop down portion is shown when the control receives the input focus.
| Boolean | Description |
|---|---|
| True | The drop down portion automatically becomes visible when the control receives the input focus. |
| False | The drop down portion does not change when the control receives the input focus. |
The DropOnFocus property defines whether the drop down portion is shown when the control receives the input focus.
If the control already has the input focus when this property is set, the drop down portion remains unchanged.
The DropDown.Dropped property can be used to display and hide the drop down portion.
This property has no effect on a simple combo box.
See Also SftBoxDropDown Object | Object Hierarchy