System.Windows.Forms.OpenFileDialog Members

The members of System.Windows.Forms.OpenFileDialog are listed below.

See Also: Inherited members from System.Windows.Forms.FileDialog

Public Constructors

Initializes an instance of the System.Windows.Forms.OpenFileDialog class.

Public Properties

override
CheckFileExistsbool.

Gets or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that does not exist.

Multiselectbool.

Gets or sets a value indicating whether the dialog box allows multiple files to be selected.

ReadOnlyCheckedbool.

Gets or sets a value indicating whether the read-only check box is selected.

[read-only]
SafeFileNamestring.

Gets the file name and extension for the file selected in the dialog box. The file name does not include the path.

[read-only]
SafeFileNamesstring[].

Gets an array of file names and extensions for all the selected files in the dialog box. The file names do not include the path.

ShowReadOnlybool.

Gets or sets a value indicating whether the dialog box contains a read-only check box.

Public Methods

OpenFile() : System.IO.Stream

Opens the file selected by the user, with read-only permission. The file is specified by the FileDialog.FileName property.

override
Reset()

Resets all properties to their default values.