| TDBText Control > TDBText Control and Object References > TDBText DropDown Object Properties |
The TDBText control's DropDown object allows you to add a button in the control area to drop down an edit window for easy text entry. This edit window provides can hold multiple lines of text, and allows full viewing of the text without the need to scroll as text is entered.
The button can be added only on the right portion of the control, either inside or outside of the data entry area.
The properties of the DropDown object can be set with the Button Property Page (TDBText) at design time, and can be set with Visual Basic code at run time.
The following code demonstrates how to change the drop down button’s appearance at run time:
| Example Title |
Copy Code
|
|---|---|
With TDBText.DropDown
.Visible = dbiShowOnFocus
.Position = dbiDropPosInside
End With
|
|
![]() |
Note: The DropDown object is supported only when the control is set to the single line mode. When the MultiLine property is set to True, the DropDown object will be completely disabled and will not respond to any keyboard events. |
End users will not be able to enter the Enter, Ctrl+Enter, or the Tab characters in the drop down edit window.
Clicking on the drop down button will cause the focus to move into the edit control.
All of the properties for the DropDown object are documented in the following reference section: