ToolStripComboBox
Previous  Next

Methods

AddItem(item AS String) : Adds an item to control.

 New1(text AS String) : Creates a new ToolStripComboBox with the Text property set to text.

RemoveItem(item AS String) : Removes an item from the control.


Properties

BackColor : Color [I/O] : Sets or gets the background color of the control - same as Color.

ControlRef : Control [I] : Gets a reference to the underlying control.

DropDownStyle : Int [I/O] : Determines the style of the control : 0 Simple : 1 DropDown (default) : 2 DropDownList :

Enabled : Boolean [I/O] : Enables or disables the control.

ForeColor  : Color [I/O] : Sets or gets the foreground color of the control.

Image : Bitmap [I/O] : Gets or sets the background image of the control.

KeyChar : Int [I] : Gets the character code of the last key character received by the control in a KeyPress event.

SelectedItem : String  [I/O] : Gets or sets the text of the presently selected item.

SelectedIndex : Int [I/O] : Gets or sets the index of the  presently selected item. Is -1 if no selection is presently made.

SelectedText : String [I/O] : Gets or sets the text of the  present selection.

SelectionLength : Int [I/O] : Gets or sets the length of the  present selection.

SelectionStart : Int  [I/O] : Gets or sets the start of the selected text

Text : String [I/O] : Gets or sets the text associated with the control.

Visible : Boolean [I/O] : Gets or sets whether the control is visible.


Events

Click-: The control has been clicked.

GotFocus-: The control has been given the focus.

KeyPress -: The key is retrieved by getting the KeyChar property (see above) as a library cannot currently return a value.

LostFocus-: The control has lost the focus.

SelectionChanged-: The selected item has changed.