


Gets the file names of all selected files in the dialog box. Gets or sets a string containing the file name selected in the file dialog box. 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). Gets or sets the default file name extension. Gets the custom places collection for this FileDialog instance. Gets or sets a value indicating whether the dialog box displays a warning if the user specifies a path that does not exist. Gets or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that does not exist. Gets or sets a value indicating whether this FileDialog instance should automatically upgrade appearance and behavior when running on Windows Vista. Gets or sets a value indicating whether the dialog box automatically adds an extension to a file name if the user omits the extension. The following are some of the commonly used properties of the OpenFileDialog control − Sr.No. You can also set the ReadOnl圜hecked property to True, so that the read-only check box appears checked.įollowing is the Open File dialog box − Properties of the OpenFileDialog Control If the ShowReadOnly property is set to True, then a read-only check box appears in the dialog box.

The OpenFileDialog control class inherits from the abstract class FileDialog. The user can check if the file exists and then open it. The OpenFileDialog control prompts the user to open a file and allows the user to select a file to open.
