OpenFileDialog
The OpenFileDialog provides a dialog that prompts the user to select and open a file.
Properties
The key properties for the OpenFileDialog component include:
-
CheckFileExists. Specifies whether an error occurs if the user selects a file that does not exist.
-
CheckPathExists. Indicates that the control will check that the specified file path exists before returning to the dialog.
-
Multiselect. Determines whether multiple files can be selected within the dialog.
-
ShowReadOnly. Specifies whether a read-only check box appears in the dialog box. This will mark the selected file as read-only.
-
ReadOnlyChecked. Specifies whether the read-only check box in the dialog is selected.
Events
Events can be configured for the OpenFileDialog to specify the behaviour of the component. For example, an action can be configured to occur when a user clicks the Open or Save button in the dialog using the FileOk property.
For information on configuring events and other components of the design using a script, see: Working with Scripts.
Adding an OpenFileDialog
When you drag an OpenFileDialog component from the Toolbox to a form in Flow Designer, it will appear as an entry in the design space. You can select the control and configure it using the Properties pane.
More information on the OpenFileDialog component can be viewed at the link to Microsoft® Documentation.