All pages
Powered by GitBook
1 of 1

Loading...

OpenFileDialog

Wisej.Web.OpenFileDialog

Namespace: Wisej.Web

Assembly: Wisej.Framework (2.5.0.0)

  • CommonDialog

    • FileDialog

Prompts the user to open a file from the server.

You can:

  • Override . It's called when the specified file doesn't exist and the property is true.

  • Override to create your custom when the method is called.

  • Set the to a class that has a constructor that accepts as the single argument to change the User Interface (UI) of the file dialog.

You must add at least one to the collection before showing the dialog.

Constructors

OpenFileDialog()

Initializes a new instance of .

OpenFileDialog(container)

Initializes a new instance of the extender with a specified container.

Name
Type
Description

Properties

CheckFileExists

: Returns or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that does not exist.

Multiselect

: Returns or sets a value indicating whether the dialog box allows multiple files to be selected.

SafeFileName

: Returns the file name and extension for the file selected in the dialog box. The file name does not include the path.

SafeFileNames

: 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.

Methods

OpenFile()

Opens the file selected by the user, with read-only permission. The file is specified by the property.

Returns: . A that specifies the read-only file selected by the user.

Throws:

  • is empty or null.

Reset()

Resets all properties to their default values.

Override OnFileOk to provide your custom implementation of the actions to execute when the user presses the OK button.

container

IContainer

An IContainer that represents the container of the OpenFileDialog component.

OpenFileDialog
Public Class OpenFileDialog
    Inherits FileDialog
PromptFileNotFound
CheckFileExists
CreateUI
Form
ShowDialog
DialogTemplate
Form
FileDialog
IFileSystemProvider
Roots
OpenFileDialog
OpenFileDialog
Boolean
Boolean
String
String[]
FileName
Stream
Stream
ArgumentNullException
FileName
public class OpenFileDialog : FileDialog