System.Windows.Forms.ComboBox: Method Members

The methods of System.Windows.Forms.ComboBox are listed below. For a list of all members, see the ComboBox Members list.

See Also: Inherited members from System.Windows.Forms.ListControl

Public Methods

BeginUpdate()

Maintains performance when items are added to the System.Windows.Forms.ComboBox one at a time.

EndUpdate()

Resumes painting the System.Windows.Forms.ComboBox control after painting is suspended by the ComboBox.BeginUpdate method.

FindString(string) : int

Returns the index of the first item in the System.Windows.Forms.ComboBox that starts with the specified string.

FindString(string, int) : int

Returns the index of the first item in the System.Windows.Forms.ComboBox beyond the specified index that contains the specified string. The search is not case sensitive.

FindStringExact(string) : int

Finds the first item in the combo box that matches the specified string.

FindStringExact(string, int) : int

Finds the first item after the specified index that matches the specified string.

GetItemHeight(int) : int

Returns the height of an item in the System.Windows.Forms.ComboBox.

override
ResetText()

Resets the Control.Text property to its default value.

Select(int, int)

Selects a range of text in the editable portion of the System.Windows.Forms.ComboBox.

SelectAll()

Selects all the text in the editable portion of the System.Windows.Forms.ComboBox.

override
ToString() : string

Returns a string that represents the System.Windows.Forms.ComboBox control.

Protected Methods

AddItemsCore(object[])

Adds the specified items to the combo box.

override
CreateAccessibilityInstance() : AccessibleObject

Creates a new accessibility object for the control.

override
CreateHandle()

Creates a handle for the control.

override
Dispose(bool)

Releases the unmanaged resources used by the System.Windows.Forms.ComboBox and optionally releases the managed resources.

override
IsInputKey(Keys) : bool

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

override
OnBackColorChanged(EventArgs)

Raises the Control.BackColorChanged event.

override
OnDataSourceChanged(EventArgs)

Raises the ListControl.DataSourceChanged event.

override
OnDisplayMemberChanged(EventArgs)

Raises the ListControl.DisplayMemberChanged event.

OnDrawItem(DrawItemEventArgs)

Raises the ComboBox.DrawItem event.

OnDropDown(EventArgs)

Raises the ComboBox.DropDown event.

OnDropDownClosed(EventArgs)

Raises the ComboBox.DropDownClosed event.

OnDropDownStyleChanged(EventArgs)

Raises the ComboBox.DropDownStyleChanged event.

override
OnFontChanged(EventArgs)

Raises the Control.FontChanged event.

override
OnForeColorChanged(EventArgs)

Raises the Control.ForeColorChanged event.

override
OnGotFocus(EventArgs)

Raises the Control.GotFocus event.

override
OnHandleCreated(EventArgs)

Raises the Control.HandleCreated event.

override
OnHandleDestroyed(EventArgs)

Raises the Control.HandleDestroyed event.

override
OnKeyDown(KeyEventArgs)

Raises the Control.KeyDown event.

override
OnKeyPress(KeyPressEventArgs)

Raises the Control.KeyPress event.

override
OnLostFocus(EventArgs)

Raises the Control.LostFocus event.

OnMeasureItem(MeasureItemEventArgs)

Raises the ComboBox.MeasureItem event.

override
OnMouseEnter(EventArgs)

Raises the Control.MouseEnter event.

override
OnMouseLeave(EventArgs)

Raises the Control.MouseLeave event.

override
OnParentBackColorChanged(EventArgs)

Raises the Control.BackColorChanged event.

override
OnResize(EventArgs)

Raises the Control.Resize event.

override
OnSelectedIndexChanged(EventArgs)

Raises the ComboBox.SelectedIndexChanged event.

OnSelectedItemChanged(EventArgs)

Raises the DomainUpDown.SelectedItemChanged event.

override
OnSelectedValueChanged(EventArgs)

Raises the ListControl.SelectedValueChanged event.

OnSelectionChangeCommitted(EventArgs)

Raises the ComboBox.SelectionChangeCommitted event.

override
OnTextChanged(EventArgs)

Raises the Control.TextChanged event.

OnTextUpdate(EventArgs)

Raises the ComboBox.TextUpdate event.

override
OnValidating(System.ComponentModel.CancelEventArgs)

Raises the Control.Validating event.

override
ProcessKeyEventArgs(ref Message) : bool
Documentation for this section has not yet been entered.
override
RefreshItem(int)

Refreshes the item contained at the specified location.

override
RefreshItems()

Refreshes all System.Windows.Forms.ComboBox items.

override
ScaleControl(System.Drawing.SizeF, BoundsSpecified)

Scales a control's location, size, padding and margin.

override
SetBoundsCore(int, int, int, int, BoundsSpecified)

Sets the size and location of the System.Windows.Forms.ComboBox.

override
SetItemCore(int, object)

When overridden in a derived class, sets the object with the specified index in the derived class.

override
SetItemsCore(IList)

When overridden in a derived class, sets the specified array of objects in a collection in the derived class.

override
WndProc(ref Message)
Documentation for this section has not yet been entered.