OpenFileDialog Members
.NET Framework 3.0
Prompts the user to open a file. This class cannot be inherited.
The following tables list the members exposed by the OpenFileDialog type.
(see also
Protected Properties
)
Top
| Name | Description | |
|---|---|---|
| AddExtension | Gets or sets a value indicating whether the dialog box automatically adds an extension to a file name if the user omits the extension.(inherited from FileDialog) |
| CheckFileExists | Overridden. Gets or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that does not exist. |
| CheckPathExists | Gets or sets a value indicating whether the dialog box displays a warning if the user specifies a path that does not exist.(inherited from FileDialog) |
| Container | Gets the IContainer that contains the Component.(inherited from Component) |
| DefaultExt | Gets or sets the default file name extension.(inherited from FileDialog) |
| DereferenceLinks | Gets or sets a value indicating whether the dialog box returns the location of the file referenced by the shortcut or whether it returns the location of the shortcut (.lnk).(inherited from FileDialog) |
| FileName | Gets or sets a string containing the file name selected in the file dialog box.(inherited from FileDialog) |
| FileNames | Gets the file names of all selected files in the dialog box.(inherited from FileDialog) |
| 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.(inherited from FileDialog) |
| FilterIndex | Gets or sets the index of the filter currently selected in the file dialog box.(inherited from FileDialog) |
| InitialDirectory | Gets or sets the initial directory displayed by the file dialog box.(inherited from FileDialog) |
| Multiselect | Gets or sets a value indicating whether the dialog box allows multiple files to be selected. |
| ReadOnlyChecked | Gets or sets a value indicating whether the read-only check box is selected. |
| RestoreDirectory | Gets or sets a value indicating whether the dialog box restores the current directory before closing.(inherited from FileDialog) |
| ShowHelp | Gets or sets a value indicating whether the Help button is displayed in the file dialog box.(inherited from FileDialog) |
| ShowReadOnly | Gets or sets a value indicating whether the dialog box contains a read-only check box. |
| Site | Gets or sets the ISite of the Component.(inherited from Component) |
| SupportMultiDottedExtensions | Gets or sets whether the dialog box supports displaying and saving files that have multiple file name extensions.(inherited from FileDialog) |
| Tag | Gets or sets an object that contains data about the control. (inherited from CommonDialog) |
| Title | Gets or sets the file dialog box title.(inherited from FileDialog) |
| ValidateNames | Gets or sets a value indicating whether the dialog box accepts only valid Win32 file names.(inherited from FileDialog) |
| Name | Description | |
|---|---|---|
| CanRaiseEvents | Gets a value indicating whether the component can raise an event.(inherited from Component) |
| DesignMode | Gets a value that indicates whether the Component is currently in design mode.(inherited from Component) |
| Events | Gets the list of event handlers that are attached to this Component.(inherited from Component) |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| 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) |
| Dispose | Overloaded. Releases the resources used by the Component. (inherited from Component) |
| Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| 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) |
| GetType | Gets the Type of the current instance. (inherited from Object) |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (inherited from MarshalByRefObject) |
| OpenFile | Opens the file selected by the user, with read-only permission. The file is specified by the FileName property. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| Reset | Overridden. Resets all properties to their default values. |
| ShowDialog | Overloaded. Runs a common dialog box. (inherited from CommonDialog) |
| ToString | Provides a string version of this object. (inherited from FileDialog) |
| Name | Description | |
|---|---|---|
| Dispose | Overloaded. Releases the resources used by the Component. (inherited from Component) |
| Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (inherited from Component) |
| GetService | Returns an object that represents a service provided by the Component or by its Container. (inherited from Component) |
| MemberwiseClone | Overloaded. (inherited from MarshalByRefObject) |
| Name | Description | |
|---|---|---|
| Disposed | Occurs when the component is disposed by a call to the Dispose method. (inherited from Component) |
| FileOk | Occurs when the user clicks on the Open or Save button on a file dialog box.(inherited from FileDialog) |
| HelpRequest | Occurs when the user clicks the Help button on a common dialog box.(inherited from CommonDialog) |
Community Additions
ADD
Show: