Represents an enhanced OpenFileDialog which supports devices without touch-screens.
| C# | Visual Basic |
public class OpenFileDialog : Component, IDisposable
Public Class OpenFileDialog _ Inherits Component _ Implements IDisposable
| All Members | Constructors | Methods | Properties | Events | |
| Icon | Member | Description |
|---|---|---|
| OpenFileDialog()()()() |
Initializes a new instance of OpenFileDialog.
| |
| CanRaiseEvents |
Gets a value indicating whether the component can raise an event.
(Inherited from Component.) | |
| Container |
Gets the IContainer that contains the Component.
(Inherited from Component.) | |
| 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.) | |
| DesignMode |
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.) | |
| Dispose(Boolean) | Releases the unmanaged resources used by the OpenFileDialog and optionally releases the managed resources (Overrides Component.Dispose(Boolean).) | |
| Dispose()()()() |
Releases all resources used by the Component.
(Inherited from Component.) | |
| Disposed |
Occurs when the component is disposed by a call to the Dispose()()()() method.
(Inherited from Component.) | |
| Equals(Object) | (Inherited from Object.) | |
| Events |
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.) | |
| FileName |
Gets or sets a string containing the file name selected in the file dialog box.
| |
| Filter |
Gets or sets the current file name filter string, which determines the choices that appear in the "Save as file type" or "Files of type" box in the dialog box.
| |
| FilterIndex |
Gets or sets the index of the filter currently selected in the file dialog box.
| |
| Finalize()()()() |
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetLifetimeService()()()() |
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) | |
| GetService(Type) | (Inherited from Component.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| InitialDirectory |
Gets or sets the initial directory displayed by the file dialog box.
| |
| InitializeLifetimeService()()()() |
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) | |
| MemberwiseClone(Boolean) |
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.) | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Owner |
Gets or sets the owner control.
| |
| ShowDialog()()()() |
Runs a common dialog box with a default owner.
| |
| Site | (Inherited from Component.) | |
| Title |
Gets or sets the file dialog box title.
| |
| ToString()()()() |
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.) |
Uses new built-in support in Windows Mobile 5.0 and later and Windows Embedded Compact 7.
On prior versions the regular OpenFileDialog is used.
| Platforms Supported | |
|---|---|
| Windows Mobile | Pocket PC 2003 and later, Windows Mobile Version 5.0 and later |
| Windows Embedded Compact | Windows CE 4.1 and later |
| Object | |||
| MarshalByRefObject | |||
| Component | |||
| OpenFileDialog | |||