--- title: "OpenFileDialog Component Overview" ms.date: "03/30/2017" f1_keywords: - "OpenFileDialog" helpviewer_keywords: - "OpenFileDialog component [Windows Forms], about OpenFileDialog" - "Open File dialog box [Windows Forms], displaying in Windows Forms" ms.assetid: cd717300-46b6-4f82-8207-b218fa7fa407 --- # OpenFileDialog Component Overview (Windows Forms) The Windows Forms component is a pre-configured dialog box. It is the same **Open File** dialog box exposed by the Windows operating system. It inherits from the class. ## Use this component Use this component within your Windows-based application as a simple solution for file selection in lieu of configuring your own dialog box. By relying on standard Windows dialog boxes, you create applications whose basic functionality is immediately familiar to users. Be aware, however, that when using the component, you must write your own file-opening logic. Use the method to display the dialog at run time. You can enable users to multi-select files to be opened with the property. Additionally, you can use the property to determine if a read-only check box appears in the dialog box. The property indicates whether the read-only check box is selected. Finally, the property sets the current file name filter string, which determines the choices that appear in the "Files of type" box in the dialog box. When it is added to a form, the component appears in the tray at the bottom of the Windows Forms Designer in Visual Studio. ## See also - - [OpenFileDialog Component](openfiledialog-component-windows-forms.md)