This class allows you to check whether a file exists and to open it. The ShowReadOnly property determines whether a read-only check box appears in the dialog box. The ReadOnlyChecked property indicates whether the read-only check box is checked.
Most of the core functionality for this class is found in the FileDialog class.
If you want to give the user the ability to select a folder instead of a file, use FolderBrowserDialog instead.
The OpenFileDialog is able to filter the types of files shown to the user based on a given pattern. For example, the filter C# files|.cs|All files|.* will by default show users files in the given directory ending with .cs. The filter can be modified by changing the selection in the dropdown on the bottom right.