Export (0) Print
Expand All

ComboBoxArray Class

Note: This API is now obsolete.

Provides a control array of ComboBox controls

Namespace:  Microsoft.VisualBasic.Compatibility.VB6
Assembly:  Microsoft.VisualBasic.Compatibility (in Microsoft.VisualBasic.Compatibility.dll)

[ObsoleteAttribute("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public class ComboBoxArray : BaseControlArray, 
	IExtenderProvider

The ComboBoxArray type exposes the following members.

  NameDescription
Public methodComboBoxArray()Initializes a new instance of the ComboBoxArray class.
Public methodComboBoxArray(IContainer)Initializes a new instance of the ComboBoxArray class, specifying its container.
Top

  NameDescription
Protected propertyCanRaiseEventsGets a value indicating whether the component can raise an event. (Inherited from Component.)
Public propertyContainerGets the IContainer that contains the Component. (Inherited from Component.)
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Protected propertyEventsGets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public propertyItemGets a specific element of a ComboBoxArray by index. Read-only.
Public propertySiteGets or sets the ISite of the Component. (Inherited from Component.)
Top

  NameDescription
Protected methodBaseCanExtendGets a value that indicates whether a control is a member of a control array. (Inherited from BaseControlArray.)
Protected methodBaseGetIndexGets the index of a control in a control array. (Inherited from BaseControlArray.)
Protected methodBaseGetItemGets the control for a specified index in a control array. (Inherited from BaseControlArray.)
Protected methodBaseResetIndexNot supported in the BaseControlArray class. (Inherited from BaseControlArray.)
Protected methodBaseSetIndexSets the index for a control in a control array. (Inherited from BaseControlArray.)
Protected methodBaseShouldSerializeIndexReturns a value that indicates whether a control is a member of a control array. (Inherited from BaseControlArray.)
Public methodCanExtendGets a value that determines whether a control is a member of a ComboBoxArray.
Public methodCountReturns the number of controls in a control array. (Inherited from BaseControlArray.)
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodDispose()Releases all resources used by the Component. (Inherited from Component.)
Protected methodDispose(Boolean)Releases the unmanaged resources that are used by a control in a control array and optionally releases the managed resources. (Inherited from BaseControlArray.)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Protected methodGetControlInstanceTypeInfrastructure. Overrides GetControlInstanceType. (Overrides BaseControlArray.GetControlInstanceType().)
Public methodGetEnumeratorReturns a reference to an enumerator object, which is used to iterate over a control array. (Inherited from BaseControlArray.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetIndexGets the index of a ComboBox in a ComboBoxArray.
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodGetServiceReturns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodHookUpControlEventsInfrastructure. Overrides HookUpControlEvents. (Overrides BaseControlArray.HookUpControlEvents(Object).)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodLBoundReturns a Short that contains the smallest available subscript for a control array. (Inherited from BaseControlArray.)
Public methodLoadCreates a new element in a control array. (Inherited from BaseControlArray.)
Protected methodMemberwiseClone()Creates a shallow copy of the current Object. (Inherited from Object.)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public methodResetIndexNot supported in the ComboBoxArray class.
Public methodSetIndexSets the index of the initial ComboBox in a ComboBoxArray.
Public methodShouldSerializeIndexReturns a value that indicates whether a ComboBox is a member of this ComboBoxArray.
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Public methodUBoundReturns a Short that contains the largest available subscript for a control array. (Inherited from BaseControlArray.)
Public methodUnloadRemoves a control from a control array. (Inherited from BaseControlArray.)
Top

  NameDescription
Public eventBackColorChangedOccurs when the value of the BackColor property changes.
Public eventBindingContextChangedOccurs when the value of the BindingContext property changes.
Public eventCausesValidationChangedOccurs when the value of the CausesValidation property changes.
Public eventChangeUICuesOccurs when the focus or keyboard user interface (UI) cues change.
Public eventClickOccurs when a ComboBox in a ComboBoxArray is clicked.
Public eventClientSizeChangedOccurs when the value of the ClientSize property changes.
Public eventContextMenuChangedOccurs when the value of the ContextMenu property changes.
Public eventContextMenuStripChangedOccurs when the value of the ContextMenuStrip property changes.
Public eventControlAddedOccurs when a new control is added to the ComboBoxArray.
Public eventControlRemovedOccurs when a control is removed from the ComboBoxArray.
Public eventCursorChangedOccurs when the value of the Cursor property changes.
Public eventDataSourceChangedOccurs when the value of the DataSource property changes.
Public eventDisplayMemberChangedOccurs when the value of the DisplayMember property changes.
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Public eventDockChangedOccurs when the value of the Dock property changes.
Public eventDoubleClickOccurs when a ComboBox control in a ComboBoxArray is double-clicked.
Public eventDragDropOccurs when a drag-and-drop operation is completed.
Public eventDragEnterOccurs when an object is dragged into the control's bounds.
Public eventDragLeaveOccurs when an object is dragged out of the control's bounds.
Public eventDragOverOccurs when an object is dragged over the control's bounds.
Public eventDrawItemOccurs when a visual aspect of an owner-drawn ComboBox changes.
Public eventDropDownOccurs when the drop-down part of a ComboBox is shown.
Public eventDropDownClosedOccurs when the drop-down part of the ComboBox is no longer visible.
Public eventDropDownStyleChangedOccurs when the value of the DropDownStyle property changes.
Public eventEnabledChangedOccurs when the value of the Enabled property changes.
Public eventEnterOccurs when the control is entered.
Public eventFontChangedOccurs when the value of the Font property changes.
Public eventForeColorChangedOccurs when the value of the ForeColor property changes.
Public eventFormatOccurs when the control is bound to a data value.
Public eventFormatStringChangedOccurs when value of the FormatString property changes
Public eventFormattingEnabledChangedOccurs when the value of the FormattingEnabled property changes.
Public eventGiveFeedbackOccurs during a drag operation.
Public eventHelpRequestedOccurs when the user requests help for a control.
Public eventImeModeChangedOccurs when the value of the ImeMode property changes.
Public eventKeyDownOccurs when a key is pressed and the control has focus.
Public eventKeyPressOccurs when a key is pressed and the control has focus.
Public eventKeyUpOccurs when a key is released and the control has focus.
Public eventLayoutOccurs when a control should reposition its child controls.
Public eventLeaveOccurs when the input focus leaves the control.
Public eventLocationChangedOccurs when the value of the Location property changes.
Public eventMarginChangedOccurs when the value of the Margin property changes.
Public eventMeasureItemOccurs every time that an owner-drawn ComboBox item has to be drawn and when the sizes of the list items are determined.
Public eventMouseCaptureChangedOccurs when the control loses or gains mouse capture.
Public eventMouseClickOccurs when the control is clicked by the mouse.
Public eventMouseDoubleClickOccurs when the control is double-clicked by the mouse.
Public eventMouseDownOccurs when the mouse pointer is over the control and a mouse button is pressed.
Public eventMouseEnterOccurs when the mouse pointer enters the control.
Public eventMouseHoverOccurs when the mouse pointer rests on the control.
Public eventMouseLeaveOccurs when the mouse pointer leaves the control.
Public eventMouseMoveOccurs when the mouse pointer is moved over the control.
Public eventMouseUpOccurs when the mouse pointer is over the control and a mouse button is released.
Public eventMoveOccurs when the control is moved.
Public eventPaddingChangedOccurs when the control's Padding property changes.
Public eventParentChangedOccurs when the control's Parent property changes.
Public eventQueryAccessibilityHelpOccurs when an AccessibleObject is providing Help to accessibility applications.
Public eventQueryContinueDragOccurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled.
Public eventRegionChangedOccurs when the value of the Region property changes.
Public eventResizeOccurs when the control is resized.
Public eventRightToLeftChangedOccurs when the RightToLeftChanged property value changes.
Public eventSelectedIndexChangedOccurs when the SelectedIndex property has changed.
Public eventSelectedValueChangedOccurs when the SelectedValue property has changed.
Public eventSelectionChangeCommittedOccurs when the selected item has changed and that change is displayed in the ComboBox.
Public eventSizeChangedOccurs when the Size property value changes.
Public eventStyleChangedOccurs when the control style changes.
Public eventSystemColorsChangedOccurs when the system colors change.
Public eventTabIndexChangedOccurs when the TabIndex property value changes.
Public eventTabStopChangedOccurs when the TabStop property value changes.
Public eventTextChangedOccurs when the Text property value changes.
Public eventTextUpdateOccurs when the control has formatted the text, but before the text is displayed.
Public eventValidatedOccurs when the control is finished validating.
Public eventValidatingOccurs when the control is validating.
Public eventValueMemberChangedOccurs when the ValueMember property changes.
Public eventVisibleChangedOccurs when the Visible property value changes.
Top

  NameDescription
Protected fieldcomponentsStores the container for a control array. (Inherited from BaseControlArray.)
Protected fieldcontrolAddedAtDesignTimeStores values to track whether a control in a control array was created at design time or at run time. (Inherited from BaseControlArray.)
Protected fieldcontrolsStores values that represent the controls in a control array. (Inherited from BaseControlArray.)
Protected fieldfIsEndInitCalledStores a value indicating whether the initialization code for a control array's container has finished executing. (Inherited from BaseControlArray.)
Protected fieldindicesStores the indices for a control array. (Inherited from BaseControlArray.)
Top

  NameDescription
Explicit interface implemetationPrivate methodISupportInitialize.BeginInitBegins the initialization of the control. (Inherited from BaseControlArray.)
Explicit interface implemetationPrivate methodISupportInitialize.EndInitEnds the initialization of a control. (Inherited from BaseControlArray.)
Top

The ComboBoxArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 ComboBox array. It does not provide the design-time features of a Visual Basic 6.0 control array.

NoteNote

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2010. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Obsolete (compiler warning) in 4

.NET Framework Client Profile

Obsolete (compiler warning) in 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft