System.Windows.Forms
1.0.5000.0
2.0.0.0
System.Windows.Forms.FileDialog
This class allows you to check whether a file exists and to open it. The property determines whether a read-only check box appears in the dialog box. The property indicates whether the read-only check box is checked.
Most of the functionality for this class is found in the class.
If you want to give the user the ability to select a folder instead of a file, use instead.
Prompts the user to open a file. This class cannot be inherited.
Constructor
This is the default, compiler-supplied constructor for the class.
Initializes an instance of the class.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(true)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that does not exist.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(false)
System.Boolean
To be added.
Use the property to access the full list of selected file names.
Gets or sets a value indicating whether the dialog box allows multiple files to be selected.
1.0.5000.0
2.0.0.0
Method
System.IO.Stream
The method is used to provide a facility to quickly open a file from the dialog box. The file is opened in read-only mode for security purposes. To open a file in read/write mode, you must use another method, such as .
Opens the file selected by the user, with read-only permission. The file is specified by the property.
A that specifies the read-only file selected by the user.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(false)
System.Boolean
To be added.
The state does not affect the read/write mode that uses to open a file selected in the dialog box. will always open the file in read-only mode.
The property must be set before in order for the read-only check box to appear in the dialog box.
Gets or sets a value indicating whether the read-only check box is selected.
1.0.5000.0
2.0.0.0
Method
System.Void
To be added.
Resets all properties to their default values.
1.0.5000.0
2.0.0.0
Property
2.0.0.0
System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)
System.ComponentModel.Browsable(false)
System.String
To be added.
A safe file name (just the file name and extension without a path) can be used to improve security for applications because it does not expose path information. This property should be accessible to code running with limited trust.
Gets the file name and extension for the file selected in the dialog box. The file name does not include the path.
Property
2.0.0.0
System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)
System.ComponentModel.Browsable(false)
System.String[]
To be added.
A safe file name (just the file name and extension without a path) can be used to improve security for applications because it does not expose path information. This property should be accessible to code running with limited trust.
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.
Property
System.ComponentModel.DefaultValue(false)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the dialog box contains a read-only check box.
1.0.5000.0
2.0.0.0