Wisej.Web.OpenFileDialog
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.2.0.0)
Prompts the user to open a file from the server.
You can:
Override PromptFileNotFound. It's called when the specified file doesn't exist and the property CheckFileExists is true.
Override CreateUI to create your custom Form when the method ShowDialog is called.
Set the DialogTemplate to a Form class that has a constructor that accepts FileDialog as the single argument to change the User Interface (UI) of the file dialog.
Override OnFileOk to provide your custom implementation of the actions to execute when the user presses the OK button.
You must add at least one IFileSystemProvider to the Roots collection before showing the dialog.
Initializes a new instance of OpenFileDialog.
Initializes a new instance of the OpenFileDialog extender with a specified container.
Boolean: Returns or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that does not exist.
Boolean: Returns or sets a value indicating whether the dialog box allows multiple files to be selected.
String: Returns the file name and extension for the file selected in the dialog box. The file name does not include the path.
String[]: Returns an array of file names and extensions for all the selected files in the dialog box. The file names do not include the path.
Opens the file selected by the user, with read-only permission. The file is specified by the FileName property.
Returns: Stream. A Stream that specifies the read-only file selected by the user.
Throws:
ArgumentNullException FileName is empty or null.
Resets all properties to their default values.
Name | Type | Description |
---|---|---|
container
An IContainer that represents the container of the OpenFileDialog component.