This topic has not yet been rated - Rate this topic

BaseControlArray Class

Note: This API is now obsolete.

Implements the basic functionality common to control arrays in applications upgraded from Visual Basic 6.0.

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.VisualBasic.Compatibility.VB6.BaseControlArray
        More...

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 abstract class BaseControlArray : Component, 
	ISupportInitialize

The BaseControlArray type exposes the following members.

  Name Description
Protected method BaseControlArray() Initializes a new instance of the BaseControlArray class.
Protected method BaseControlArray(IContainer) Initializes a new instance of the BaseControlArray class, optionally specifying a container.
Top
  Name Description
Protected property CanRaiseEvents Gets a value indicating whether the component can raise an event. (Inherited from Component.)
Public property Container Gets the IContainer that contains the Component. (Inherited from Component.)
Protected property DesignMode Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Protected property Events Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public property Site Gets or sets the ISite of the Component. (Inherited from Component.)
Top
  Name Description
Protected method BaseCanExtend Gets a value that indicates whether a control is a member of a control array.
Protected method BaseGetIndex Gets the index of a control in a control array.
Protected method BaseGetItem Gets the control for a specified index in a control array.
Protected method BaseResetIndex Not supported in the BaseControlArray class.
Protected method BaseSetIndex Sets the index for a control in a control array.
Protected method BaseShouldSerializeIndex Returns a value that indicates whether a control is a member of a control array.
Public method Count Returns the number of controls in a control array.
Public method 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.)
Public method Dispose() Releases all resources used by the Component. (Inherited from Component.)
Protected method Dispose(Boolean) Releases the unmanaged resources that are used by a control in a control array and optionally releases the managed resources. (Overrides Component.Dispose(Boolean).)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Protected method GetControlInstanceType Returns the type of a control in a control array.
Public method GetEnumerator Returns a reference to an enumerator object, which is used to iterate over a control array.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method HookUpControlEvents Adds event handlers for a control in a control array.
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method LBound Returns a Short that contains the smallest available subscript for a control array.
Public method Load Creates a new element in a control array.
Protected method MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public method ToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Public method UBound Returns a Short that contains the largest available subscript for a control array.
Public method Unload Removes a control from a control array.
Top
  Name Description
Public event Disposed Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Top
  Name Description
Protected field components Stores the container for a control array.
Protected field controlAddedAtDesignTime Stores values to track whether a control in a control array was created at design time or at run time.
Protected field controls Stores values that represent the controls in a control array.
Protected field fIsEndInitCalled Stores a value indicating whether the initialization code for a control array's container has finished executing.
Protected field indices Stores the indices for a control array.
Top
  Name Description
Explicit interface implemetation Private method ISupportInitialize.BeginInit Begins the initialization of the control.
Explicit interface implemetation Private method ISupportInitialize.EndInit Ends the initialization of a control.
Top

You do not typically inherit from BaseControlArray. To create your own control array, inherit from one of the control array classes in the Microsoft.VisualBasic.Compatibility.VB6 namespace.

Note Note

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.
System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.VisualBasic.Compatibility.VB6.BaseControlArray
        Microsoft.VisualBasic.Compatibility.VB6.ADODCArray
        Microsoft.VisualBasic.Compatibility.VB6.BaseOcxArray
        Microsoft.VisualBasic.Compatibility.VB6.ButtonArray
        Microsoft.VisualBasic.Compatibility.VB6.CheckBoxArray
        Microsoft.VisualBasic.Compatibility.VB6.CheckedListBoxArray
        Microsoft.VisualBasic.Compatibility.VB6.ColorDialogArray
        Microsoft.VisualBasic.Compatibility.VB6.ComboBoxArray
        Microsoft.VisualBasic.Compatibility.VB6.DirListBoxArray
        Microsoft.VisualBasic.Compatibility.VB6.DriveListBoxArray
        Microsoft.VisualBasic.Compatibility.VB6.FileListBoxArray
        Microsoft.VisualBasic.Compatibility.VB6.FontDialogArray
        Microsoft.VisualBasic.Compatibility.VB6.GroupBoxArray
        Microsoft.VisualBasic.Compatibility.VB6.HScrollBarArray
        Microsoft.VisualBasic.Compatibility.VB6.ImageListArray
        Microsoft.VisualBasic.Compatibility.VB6.LabelArray
        Microsoft.VisualBasic.Compatibility.VB6.ListBoxArray
        Microsoft.VisualBasic.Compatibility.VB6.ListViewArray
        Microsoft.VisualBasic.Compatibility.VB6.MaskedTextBoxArray
        Microsoft.VisualBasic.Compatibility.VB6.MenuItemArray
        Microsoft.VisualBasic.Compatibility.VB6.OpenFileDialogArray
        Microsoft.VisualBasic.Compatibility.VB6.PanelArray
        Microsoft.VisualBasic.Compatibility.VB6.PictureBoxArray
        Microsoft.VisualBasic.Compatibility.VB6.PrintDialogArray
        Microsoft.VisualBasic.Compatibility.VB6.ProgressBarArray
        Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray
        Microsoft.VisualBasic.Compatibility.VB6.RichTextBoxArray
        Microsoft.VisualBasic.Compatibility.VB6.SaveFileDialogArray
        Microsoft.VisualBasic.Compatibility.VB6.StatusBarArray
        Microsoft.VisualBasic.Compatibility.VB6.StatusStripArray
        Microsoft.VisualBasic.Compatibility.VB6.TabControlArray
        Microsoft.VisualBasic.Compatibility.VB6.TextBoxArray
        Microsoft.VisualBasic.Compatibility.VB6.TimerArray
        Microsoft.VisualBasic.Compatibility.VB6.ToolBarArray
        Microsoft.VisualBasic.Compatibility.VB6.ToolStripArray
        Microsoft.VisualBasic.Compatibility.VB6.ToolStripMenuItemArray
        Microsoft.VisualBasic.Compatibility.VB6.TreeViewArray
        Microsoft.VisualBasic.Compatibility.VB6.VScrollBarArray
        Microsoft.VisualBasic.Compatibility.VB6.WebBrowserArray
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ