Represents a common dialog box that displays the control that allows the user to open a file. This class cannot be inherited.
Object
Component
CommonDialog
FileDialog
OpenFileDialog
[Visual Basic] NotInheritable Public Class OpenFileDialog Inherits FileDialog [C#] public sealed class OpenFileDialog : FileDialog [C++] public __gc __sealed class OpenFileDialog : public FileDialog [JScript] public class OpenFileDialog extends FileDialog
This class allows you to check if a file exists and open it. System.security.Permissions.OpenFileDialog.ShowReadOnly determines if a read-only check box appears in the dialog box. System.security.Permissions.OpenFileDialog.ReadOnlyChecked indicates whether the read-only check box is checked.
Most of the functionality for this class is found in FileDialog.
Namespace: System.WinForms
Assembly: System.WinForms.dll
OpenFileDialog Members | System.WinForms Namespace | FileDialog | CommonDialog