BaseControlArray BaseControlArray BaseControlArray BaseControlArray Class

Definition

Warning

This API is now obsolete.

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

public ref class BaseControlArray abstract : System::ComponentModel::Component, System::ComponentModel::ISupportInitialize
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public abstract class BaseControlArray : System.ComponentModel.Component, System.ComponentModel.ISupportInitialize
type BaseControlArray = class
    inherit Component
    interface ISupportInitialize
Public MustInherit Class BaseControlArray
Inherits Component
Implements ISupportInitialize
Inheritance
Derived
Attributes
Implements

Remarks

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

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. 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.

Constructors

BaseControlArray() BaseControlArray() BaseControlArray() BaseControlArray()

Initializes a new instance of the BaseControlArray class.

BaseControlArray(IContainer) BaseControlArray(IContainer) BaseControlArray(IContainer) BaseControlArray(IContainer)

Initializes a new instance of the BaseControlArray class, optionally specifying a container.

Fields

components components components components

Stores the container for a control array.

controlAddedAtDesignTime controlAddedAtDesignTime controlAddedAtDesignTime controlAddedAtDesignTime

Stores values to track whether a control in a control array was created at design time or at run time.

controls controls controls controls

Stores values that represent the controls in a control array.

fIsEndInitCalled fIsEndInitCalled fIsEndInitCalled fIsEndInitCalled

Stores a value indicating whether the initialization code for a control array's container has finished executing.

indices indices indices indices

Stores the indices for a control array.

Methods

BaseCanExtend(Object) BaseCanExtend(Object) BaseCanExtend(Object) BaseCanExtend(Object)

Gets a value that indicates whether a control is a member of a control array.

BaseGetIndex(Object) BaseGetIndex(Object) BaseGetIndex(Object) BaseGetIndex(Object)

Gets the index of a control in a control array.

BaseGetItem(Int16) BaseGetItem(Int16) BaseGetItem(Int16) BaseGetItem(Int16)

Gets the control for a specified index in a control array.

BaseResetIndex(Object) BaseResetIndex(Object) BaseResetIndex(Object) BaseResetIndex(Object)

Not supported in the BaseControlArray class.

BaseSetIndex(Object, Int16, Boolean) BaseSetIndex(Object, Int16, Boolean) BaseSetIndex(Object, Int16, Boolean) BaseSetIndex(Object, Int16, Boolean)

Sets the index for a control in a control array.

BaseShouldSerializeIndex(Object) BaseShouldSerializeIndex(Object) BaseShouldSerializeIndex(Object) BaseShouldSerializeIndex(Object)

Returns a value that indicates whether a control is a member of a control array.

Count() Count() Count() Count()

Returns the number of controls in a control array.

CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Dispose() Dispose() Dispose() Dispose()

Releases all resources used by the Component.

(Inherited from Component)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources that are used by a control in a control array and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetControlInstanceType() GetControlInstanceType() GetControlInstanceType() GetControlInstanceType()

Returns the type of a control in a control array.

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns a reference to an enumerator object, which is used to iterate over a control array.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetService(Type) GetService(Type) GetService(Type) GetService(Type)

Returns an object that represents a service provided by the Component or by its Container.

(Inherited from Component)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
HookUpControlEvents(Object) HookUpControlEvents(Object) HookUpControlEvents(Object) HookUpControlEvents(Object)

Adds event handlers for a control in a control array.

InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
LBound() LBound() LBound() LBound()

Returns a Short that contains the smallest available subscript for a control array.

Load(Int16) Load(Int16) Load(Int16) Load(Int16)

Creates a new element in a control array.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
ToString() ToString() ToString() ToString()

Returns a String containing the name of the Component, if any. This method should not be overridden.

(Inherited from Component)
UBound() UBound() UBound() UBound()

Returns a Short that contains the largest available subscript for a control array.

Unload(Int16) Unload(Int16) Unload(Int16) Unload(Int16)

Removes a control from a control array.

Explicit Interface Implementations

ISupportInitialize.BeginInit() ISupportInitialize.BeginInit() ISupportInitialize.BeginInit() ISupportInitialize.BeginInit()

Begins the initialization of the control.

ISupportInitialize.EndInit() ISupportInitialize.EndInit() ISupportInitialize.EndInit() ISupportInitialize.EndInit()

Ends the initialization of a control.

Properties

CanRaiseEvents CanRaiseEvents CanRaiseEvents CanRaiseEvents

Gets a value indicating whether the component can raise an event.

(Inherited from Component)
Container Container Container Container

Gets the IContainer that contains the Component.

(Inherited from Component)
DesignMode DesignMode DesignMode DesignMode

Gets a value that indicates whether the Component is currently in design mode.

(Inherited from Component)
Events Events Events Events

Gets the list of event handlers that are attached to this Component.

(Inherited from Component)
Site Site Site Site

Gets or sets the ISite of the Component.

(Inherited from Component)

Events

Disposed Disposed Disposed Disposed

Occurs when the component is disposed by a call to the Dispose() method.

(Inherited from Component)

Applies to