Export (0) Print
Expand All

OpenFileDialogArray Class

Note: This API is now obsolete.

Provides a control array of OpenFileDialog controls.

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

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 OpenFileDialogArray : BaseControlArray, 
	IExtenderProvider

The OpenFileDialogArray type exposes the following members.

  NameDescription
Public methodOpenFileDialogArray()Initializes a new instance of the OpenFileDialogArray class.
Public methodOpenFileDialogArray(IContainer)Initializes a new instance of the OpenFileDialogArray 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 an OpenFileDialogArray 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 an OpenFileDialogArray.
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 the default hash function. (Inherited from Object.)
Public methodGetIndexGets the index of an OpenFileDialog in an OpenFileDialogArray.
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 methodResetIndexThe ResetIndex method is not supported in the OpenFileDialogArray class.
Public methodSetIndexSets the index of the initial OpenFileDialog in an OpenFileDialogArray.
Public methodShouldSerializeIndexReturns a value that indicates whether an OpenFileDialog is a member of this OpenFileDialogArray.
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 eventDisposedOccurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Public eventFileOkOccurs when the user clicks on the Open or Save button on an OpenFileDialog dialog box.
Public eventHelpRequestOccurs when the user clicks the Help button on an OpenFileDialog dialog box.
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 OpenFileDialogArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 OpenFileDialog 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. 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.5.2
Obsolete (compiler warning) in 4.5.1
Obsolete (compiler warning) in 4.5
Obsolete (compiler warning) in 4

.NET Framework Client Profile

Obsolete (compiler warning) in 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft