Upgrade your Internet Experience
United States - English
Argentina (Español)
Australia (English)
Brasil (Português)
Canada (English)
Canada (Français)
中国 (简体中文)
Colombia (Español)
Deutschland (Deutsch)
España (Español)
France (Français)
India (English)
Italia (Italiano)
日本 (日本語)
México (Español)
Perú (Español)
Россия (Pусский)
United Kingdom (English)
United States (English)
More...
Microsoft.com
Welcome
Sign in
Office Development with Visual Studio Developer Center
Home
Library
Learn
Downloads
Support
Community
Forums
Printer Friendly Version
Send
Add Content...
Click to Rate and Give Feedback
Give feedback on this content
MSDN Library
MSDN
Please Wait
MSDN Library
Please Wait
Development Tools and Languages
Please Wait
Visual Studio 2008
Please Wait
Visual Studio
Please Wait
Visual Studio Tools for Office
Please Wait
Reference
Please Wait
2007 System Managed Reference
Please Wait
Microsoft.Office.Tools.Excel.Contro...
Please Wait
ComboBox Class (2007 System)
Please Wait
ComboBox Methods (2007 System)
Please Wait
Switch on low bandwidth view
Collapse All
Language Filter
Visual Basic
C#
C++
J#
JScript
XAML
F#
Members Filter
Include Protected Members
Include Inherited Members
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5
Other versions are also available for the following:
Microsoft Visual Studio 2005/.NET Framework 2.0
Microsoft Visual Studio 2010/.NET Framework 4.0
Visual Studio Tools for Office API Reference
ComboBox Methods (2007 System)
The
ComboBox
type exposes the following members.
Methods
Name
Description
AccessibilityNotifyClients
Overloaded.
Activate
Activates the
ComboBox
.
AddItemsCore
Obsolete.
Adds the specified items to the combo box.
(Inherited from
ComboBox
.)
BeginInvoke
Overloaded.
BeginUpdate
Maintains performance when items are added to the
ComboBox
one at a time.
(Inherited from
ComboBox
.)
BringToFront
Brings the
ComboBox
to the front of the z-order.
Contains
Retrieves a value indicating whether the specified control is a child of the control.
(Inherited from
Control
.)
CopyPicture
Copies the
ComboBox
to the Clipboard as a picture.
CreateAccessibilityInstance
Creates a new accessibility object for the control. (Inherited from
ComboBox
.)
CreateControl
Forces the creation of the control, including the creation of the handle and any child controls.
(Inherited from
Control
.)
CreateControlsInstance
Creates a new instance of the control collection for the control.
(Inherited from
Control
.)
CreateGraphics
Creates the
Graphics
for the control.
(Inherited from
Control
.)
CreateHandle
Creates a handle for the control.
(Inherited from
ComboBox
.)
CreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from
MarshalByRefObject
.)
DefWndProc
Sends the specified message to the default window procedure.
(Inherited from
Control
.)
Delete
Deletes a dynamically created
ComboBox
from the worksheet and removes it from the
ControlCollection
.
DestroyHandle
Destroys the handle associated with the control.
(Inherited from
Control
.)
Dispose
Overloaded.
Releases the unmanaged resources used by the
ComboBox
and optionally releases the managed resources.
DoDragDrop
Begins a drag-and-drop operation.
(Inherited from
Control
.)
DrawToBitmap
Supports rendering to the specified bitmap.
(Inherited from
Control
.)
EndInvoke
Retrieves the return value of the asynchronous operation represented by the
IAsyncResult
passed.
(Inherited from
Control
.)
EndUpdate
Resumes painting the
ComboBox
control after painting is suspended by the
BeginUpdate
method.
(Inherited from
ComboBox
.)
Equals
Determines whether the specified
Object
is equal to the current
Object
.
(Inherited from
Object
.)
FilterItemOnProperty
Overloaded.
Finalize
Releases unmanaged resources and performs other cleanup operations before the
Component
is reclaimed by garbage collection.
(Inherited from
Component
.)
FindForm
Retrieves the form that the control is on.
(Inherited from
Control
.)
FindString
Overloaded.
FindStringExact
Overloaded.
Focus
Sets input focus to the control.
(Inherited from
Control
.)
GetAccessibilityObjectById
Retrieves the specified
AccessibleObject
.
(Inherited from
Control
.)
GetAutoSizeMode
Retrieves a value indicating how a control will behave when its
AutoSize
property is enabled.
(Inherited from
Control
.)
GetChildAtPoint
Overloaded.
GetContainerControl
Returns the next
ContainerControl
up the control's chain of parent controls.
(Inherited from
Control
.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from
Object
.)
GetItemHeight
Returns the height of an item in the
ComboBox
.
(Inherited from
ComboBox
.)
GetItemText
Returns the text representation of the specified item.
(Inherited from
ListControl
.)
GetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from
MarshalByRefObject
.)
GetNextControl
Retrieves the next control forward or back in the tab order of child controls.
(Inherited from
Control
.)
GetPreferredSize
Retrieves the size of a rectangular area into which a control can be fitted.
(Inherited from
Control
.)
GetScaledBounds
Retrieves the bounds within which the control is scaled.
(Inherited from
Control
.)
GetService
Returns an object that represents a service provided by the
Component
or by its
Container
.
(Inherited from
Component
.)
GetStyle
Retrieves the value of the specified control style bit for the control.
(Inherited from
Control
.)
GetTopLevel
Determines if the control is a top-level control.
(Inherited from
Control
.)
GetType
Gets the
Type
of the current instance.
(Inherited from
Object
.)
Hide
Conceals the control from the user.
(Inherited from
Control
.)
InitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from
MarshalByRefObject
.)
InitLayout
Called after the control has been added to another container.
(Inherited from
Control
.)
Invalidate
Overloaded.
Invoke
Overloaded.
InvokeGotFocus
Raises the
GotFocus
event for the specified control.
(Inherited from
Control
.)
InvokeLostFocus
Raises the
LostFocus
event for the specified control.
(Inherited from
Control
.)
InvokeOnClick
Raises the
Click
event for the specified control.
(Inherited from
Control
.)
InvokePaint
Raises the
Paint
event for the specified control.
(Inherited from
Control
.)
InvokePaintBackground
Raises the
PaintBackground
event for the specified control.
(Inherited from
Control
.)
IsInputChar
Determines if a character is an input character that the control recognizes.
(Inherited from
Control
.)
IsInputKey
Determines whether the specified key is a regular input key or a special key that requires preprocessing.
(Inherited from
ComboBox
.)
MemberwiseClone
Overloaded.
NotifyInvalidate
Infrastructure.
Raises the
Invalidated
event with a specified region of the control to invalidate.
(Inherited from
Control
.)
OnAutoSizeChanged
Raises the
AutoSizeChanged
event.
(Inherited from
Control
.)
OnBackColorChanged
Raises the
BackColorChanged
event. (Inherited from
ComboBox
.)
OnBackgroundImageChanged
Raises the
BackgroundImageChanged
event.
(Inherited from
Control
.)
OnBackgroundImageLayoutChanged
Raises the
BackgroundImageLayoutChanged
event.
(Inherited from
Control
.)
OnBindingContextChanged
Raises the
BindingContextChanged
event. (Inherited from
ListControl
.)
OnCausesValidationChanged
Raises the
CausesValidationChanged
event.
(Inherited from
Control
.)
OnChangeUICues
Raises the
ChangeUICues
event.
(Inherited from
Control
.)
OnClick
Raises the
Click
event.
(Inherited from
Control
.)
OnClientSizeChanged
Raises the
ClientSizeChanged
event.
(Inherited from
Control
.)
OnContextMenuChanged
Raises the
ContextMenuChanged
event.
(Inherited from
Control
.)
OnContextMenuStripChanged
Raises the
ContextMenuStripChanged
event.
(Inherited from
Control
.)
OnControlAdded
Raises the
ControlAdded
event.
(Inherited from
Control
.)
OnControlRemoved
Raises the
ControlRemoved
event.
(Inherited from
Control
.)
OnCreateControl
Raises the
CreateControl
method.
(Inherited from
Control
.)
OnCursorChanged
Raises the
CursorChanged
event.
(Inherited from
Control
.)
OnDataSourceChanged
Raises the
DataSourceChanged
event. (Inherited from
ComboBox
.)
OnDisplayMemberChanged
Raises the
DisplayMemberChanged
event. (Inherited from
ComboBox
.)
OnDockChanged
Raises the
DockChanged
event.
(Inherited from
Control
.)
OnDoubleClick
Raises the
DoubleClick
event.
(Inherited from
Control
.)
OnDragDrop
Raises the
DragDrop
event.
(Inherited from
Control
.)
OnDragEnter
Raises the
DragEnter
event.
(Inherited from
Control
.)
OnDragLeave
Raises the
DragLeave
event.
(Inherited from
Control
.)
OnDragOver
Raises the
DragOver
event.
(Inherited from
Control
.)
OnDrawItem
Raises the
DrawItem
event.
(Inherited from
ComboBox
.)
OnDropDown
Raises the
DropDown
event.
(Inherited from
ComboBox
.)
OnDropDownClosed
Raises the
DropDownClosed
event.
(Inherited from
ComboBox
.)
OnDropDownStyleChanged
Raises the
DropDownStyleChanged
event.
(Inherited from
ComboBox
.)
OnEnabledChanged
Raises the
EnabledChanged
event.
(Inherited from
Control
.)
OnEnter
Raises the
Enter
event.
(Inherited from
Control
.)
OnFontChanged
Raises the
FontChanged
event. (Inherited from
ComboBox
.)
OnForeColorChanged
Raises the
ForeColorChanged
event. (Inherited from
ComboBox
.)
OnFormat
Raises the
Format
event.
(Inherited from
ListControl
.)
OnFormatInfoChanged
Raises the
FormatInfoChanged
event.
(Inherited from
ListControl
.)
OnFormatStringChanged
Raises the
FormatStringChanged
event.
(Inherited from
ListControl
.)
OnFormattingEnabledChanged
Raises the
FormattingEnabledChanged
event.
(Inherited from
ListControl
.)
OnGiveFeedback
Raises the
GiveFeedback
event.
(Inherited from
Control
.)
OnGotFocus
Raises the
GotFocus
event.
(Inherited from
ComboBox
.)
OnHandleCreated
Raises the
HandleCreated
event.
(Inherited from
ComboBox
.)
OnHandleDestroyed
Raises the
HandleDestroyed
event.
(Inherited from
ComboBox
.)
OnHelpRequested
Raises the
HelpRequested
event.
(Inherited from
Control
.)
OnImeModeChanged
Raises the
ImeModeChanged
event.
(Inherited from
Control
.)
OnInvalidated
Raises the
Invalidated
event.
(Inherited from
Control
.)
OnKeyDown
Raises the
KeyDown
event.
(Inherited from
ComboBox
.)
OnKeyPress
Raises the
KeyPress
event.
(Inherited from
ComboBox
.)
OnKeyUp
Raises the
KeyUp
event.
(Inherited from
Control
.)
OnLayout
Raises the
Layout
event.
(Inherited from
Control
.)
OnLeave
Raises the
Leave
event.
(Inherited from
Control
.)
OnLocationChanged
Raises the
LocationChanged
event.
(Inherited from
Control
.)
OnLostFocus
Raises the
LostFocus
event.
(Inherited from
ComboBox
.)
OnMarginChanged
Raises the
MarginChanged
event.
(Inherited from
Control
.)
OnMeasureItem
Raises the
MeasureItem
event.
(Inherited from
ComboBox
.)
OnMouseCaptureChanged
Raises the
MouseCaptureChanged
event.
(Inherited from
Control
.)
OnMouseClick
Raises the
MouseClick
event.
(Inherited from
Control
.)
OnMouseDoubleClick
Raises the
MouseDoubleClick
event.
(Inherited from
Control
.)
OnMouseDown
Raises the
MouseDown
event.
(Inherited from
Control
.)
OnMouseEnter
Raises the
MouseEnter
event.
(Inherited from
ComboBox
.)
OnMouseHover
Raises the
MouseHover
event.
(Inherited from
Control
.)
OnMouseLeave
Raises the
MouseLeave
event.
(Inherited from
ComboBox
.)
OnMouseMove
Raises the
MouseMove
event.
(Inherited from
Control
.)
OnMouseUp
Raises the
MouseUp
event.
(Inherited from
Control
.)
OnMouseWheel
Raises the
MouseWheel
event.
(Inherited from
Control
.)
OnMove
Raises the
Move
event.
(Inherited from
Control
.)
OnNotifyMessage
Notifies the control of Windows messages.
(Inherited from
Control
.)
OnPaddingChanged
Raises the
PaddingChanged
event.
(Inherited from
Control
.)
OnPaint
Raises the
Paint
event.
(Inherited from
Control
.)
OnPaintBackground
Paints the background of the control.
(Inherited from
Control
.)
OnParentBackColorChanged
Raises the
BackColorChanged
event.
(Inherited from
ComboBox
.)
OnParentBackgroundImageChanged
Raises the
BackgroundImageChanged
event when the
BackgroundImage
property value of the control's container changes.
(Inherited from
Control
.)
OnParentBindingContextChanged
Raises the
BindingContextChanged
event when the
BindingContext
property value of the control's container changes.
(Inherited from
Control
.)
OnParentChanged
Raises the
ParentChanged
event.
(Inherited from
Control
.)
OnParentCursorChanged
Raises the
CursorChanged
event.
(Inherited from
Control
.)
OnParentEnabledChanged
Raises the
EnabledChanged
event when the
Enabled
property value of the control's container changes.
(Inherited from
Control
.)
OnParentFontChanged
Raises the
FontChanged
event when the
Font
property value of the control's container changes.
(Inherited from
Control
.)
OnParentForeColorChanged
Raises the
ForeColorChanged
event when the
ForeColor
property value of the control's container changes.
(Inherited from
Control
.)
OnParentRightToLeftChanged
Raises the
RightToLeftChanged
event when the
RightToLeft
property value of the control's container changes.
(Inherited from
Control
.)
OnParentVisibleChanged
Raises the
VisibleChanged
event when the
Visible
property value of the control's container changes.
(Inherited from
Control
.)
OnPreviewKeyDown
Raises the
PreviewKeyDown
event.
(Inherited from
Control
.)
OnPrint
Raises the
Paint
event.
(Inherited from
Control
.)
OnQueryContinueDrag
Raises the
QueryContinueDrag
event.
(Inherited from
Control
.)
OnRegionChanged
Raises the
RegionChanged
event.
(Inherited from
Control
.)
OnResize
Raises the
Resize
event.
(Inherited from
ComboBox
.)
OnRightToLeftChanged
Raises the
RightToLeftChanged
event.
(Inherited from
Control
.)
OnSelectedIndexChanged
Raises the
SelectedIndexChanged
event.
(Inherited from
ComboBox
.)
OnSelectedItemChanged
Raises the
SelectedItemChanged
event.
(Inherited from
ComboBox
.)
OnSelectedValueChanged
Raises the
SelectedValueChanged
event.
(Inherited from
ComboBox
.)
OnSelectionChangeCommitted
Raises the
SelectionChangeCommitted
event.
(Inherited from
ComboBox
.)
OnSizeChanged
Raises the
SizeChanged
event.
(Inherited from
Control
.)
OnStyleChanged
Raises the
StyleChanged
event.
(Inherited from
Control
.)
OnSystemColorsChanged
Raises the
SystemColorsChanged
event.
(Inherited from
Control
.)
OnTabIndexChanged
Raises the
TabIndexChanged
event.
(Inherited from
Control
.)
OnTabStopChanged
Raises the
TabStopChanged
event.
(Inherited from
Control
.)
OnTextChanged
Raises the
TextChanged
event.
(Inherited from
ComboBox
.)
OnTextUpdate
Raises the
TextUpdate
event.
(Inherited from
ComboBox
.)
OnValidated
Raises the
Validated
event.
(Inherited from
Control
.)
OnValidating
Raises the
Validating
event.
(Inherited from
ComboBox
.)
OnValueMemberChanged
Raises the
ValueMemberChanged
event.
(Inherited from
ListControl
.)
OnVisibleChanged
Raises the
VisibleChanged
event.
(Inherited from
Control
.)
PerformLayout
Overloaded.
PointToClient
Computes the location of the specified screen point into client coordinates.
(Inherited from
Control
.)
PointToScreen
Computes the location of the specified client point into screen coordinates.
(Inherited from
Control
.)
PreProcessControlMessage
Preprocesses keyboard or input messages within the message loop before they are dispatched.
(Inherited from
Control
.)
PreProcessMessage
Preprocesses keyboard or input messages within the message loop before they are dispatched.
(Inherited from
Control
.)
ProcessCmdKey
Processes a command key.
(Inherited from
Control
.)
ProcessDialogChar
Processes a dialog character.
(Inherited from
Control
.)
ProcessDialogKey
Processes a dialog key.
(Inherited from
Control
.)
ProcessKeyEventArgs
Processes a key message and generates the appropriate control events. (Inherited from
ComboBox
.)
ProcessKeyMessage
Processes a keyboard message.
(Inherited from
Control
.)
ProcessKeyPreview
Previews a keyboard message.
(Inherited from
Control
.)
ProcessMnemonic
Processes a mnemonic character.
(Inherited from
Control
.)
RaiseDragEvent
Raises the appropriate drag event.
(Inherited from
Control
.)
RaiseKeyEvent
Raises the appropriate key event.
(Inherited from
Control
.)
RaiseMouseEvent
Raises the appropriate mouse event.
(Inherited from
Control
.)
RaisePaintEvent
Raises the appropriate paint event.
(Inherited from
Control
.)
RecreateHandle
Forces the re-creation of the handle for the control.
(Inherited from
Control
.)
RectangleToClient
Computes the size and location of the specified screen rectangle in client coordinates.
(Inherited from
Control
.)
RectangleToScreen
Computes the size and location of the specified client rectangle in screen coordinates.
(Inherited from
Control
.)
Refresh
Forces the control to invalidate its client area and immediately redraw itself and any child controls.
(Inherited from
Control
.)
RefreshItem
Refreshes the item contained at the specified location.
(Inherited from
ComboBox
.)
RefreshItems
Refreshes all
ComboBox
items.
(Inherited from
ComboBox
.)
ResetBackColor
Resets the
BackColor
property to its default value.
(Inherited from
Control
.)
ResetBindings
Causes a control bound to the
BindingSource
to reread all the items in the list and refresh their displayed values.
(Inherited from
Control
.)
ResetCursor
Resets the
Cursor
property to its default value.
(Inherited from
Control
.)
ResetFont
Resets the
Font
property to its default value.
(Inherited from
Control
.)
ResetForeColor
Resets the
ForeColor
property to its default value.
(Inherited from
Control
.)
ResetImeMode
Resets the
ImeMode
property to its default value.
(Inherited from
Control
.)
ResetMouseEventArgs
Infrastructure.
Resets the control to handle the
MouseLeave
event.
(Inherited from
Control
.)
ResetRightToLeft
Resets the
RightToLeft
property to its default value.
(Inherited from
Control
.)
ResetText
Resets the
Text
property to its default value. (Inherited from
ComboBox
.)
ResumeLayout
Overloaded.
RtlTranslateAlignment
Overloaded.
RtlTranslateContent
Converts the specified
ContentAlignment
to the appropriate
ContentAlignment
to support right-to-left text.
(Inherited from
Control
.)
RtlTranslateHorizontal
Converts the specified
HorizontalAlignment
to the appropriate
HorizontalAlignment
to support right-to-left text.
(Inherited from
Control
.)
RtlTranslateLeftRight
Converts the specified
LeftRightAlignment
to the appropriate
LeftRightAlignment
to support right-to-left text.
(Inherited from
Control
.)
Scale
Overloaded.
ScaleControl
Scales a control's location, size, padding and margin. (Inherited from
ComboBox
.)
ScaleCore
Infrastructure.
This method is not relevant for this class.
(Inherited from
Control
.)
Select
Overloaded.
Selects the
ComboBox
.
SelectAll
Selects all the text in the editable portion of the
ComboBox
.
(Inherited from
ComboBox
.)
SelectNextControl
Activates the next control.
(Inherited from
Control
.)
SendToBack
Sends the
ComboBox
to the back of the z-order.
SetAutoSizeMode
Sets a value indicating how a control will behave when its
AutoSize
property is enabled.
(Inherited from
Control
.)
SetBounds
Infrastructure. Overloaded.
SetBoundsCore
Sets the size and location of the
ComboBox
.
(Inherited from
ComboBox
.)
SetClientSizeCore
Sets the size of the client area of the control.
(Inherited from
Control
.)
SetItemCore
When overridden in a derived class, sets the object with the specified index in the derived class.
(Inherited from
ComboBox
.)
SetItemsCore
When overridden in a derived class, sets the specified array of objects in a collection in the derived class.
(Inherited from
ComboBox
.)
SetStyle
Sets a specified
ControlStyles
flag to either
true
or
false
.
(Inherited from
Control
.)
SetTopLevel
Sets the control as the top-level control.
(Inherited from
Control
.)
SetVisibleCore
Sets the
ComboBox
to the specified visible state.
(Overrides
Control
.
.
::
.
SetVisibleCore(Boolean)
.)
Show
Displays the control to the user.
(Inherited from
Control
.)
SizeFromClientSize
Determines the size of the entire control from the height and width of its client area.
(Inherited from
Control
.)
SuspendLayout
Temporarily suspends the layout logic for the control.
(Inherited from
Control
.)
ToString
Returns a string that represents the
ComboBox
control.
(Inherited from
ComboBox
.)
Update
Infrastructure.
UpdateBounds
Overloaded.
UpdateStyles
Forces the assigned styles to be reapplied to the control.
(Inherited from
Control
.)
UpdateZOrder
Updates the control in its parent's z-order.
(Inherited from
Control
.)
WndProc
Processes Windows messages.
(Inherited from
ComboBox
.)
Top
Explicit Interface Implementations
Name
Description
ISupportInitializeExtendedControl
.
.
::
.
InitializeControl
Infrastructure.
IDropTarget
.
.
::
.
OnDragDrop
Infrastructure.
Raises the
DragDrop
event.
(Inherited from
Control
.)
IDropTarget
.
.
::
.
OnDragEnter
Infrastructure.
Raises the
DragEnter
event.
(Inherited from
Control
.)
IDropTarget
.
.
::
.
OnDragLeave
Infrastructure.
Raises the
DragLeave
event.
(Inherited from
Control
.)
IDropTarget
.
.
::
.
OnDragOver
Infrastructure.
Raises the
DragOver
event.
(Inherited from
Control
.)
Top
See Also
Reference
ComboBox Class
Microsoft.Office.Tools.Excel.Controls Namespace
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
Community Content
Add new content
Annotations
|
Edit
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement