CommonDialog

Wisej.Web.CommonDialog

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Specifies the base class used for displaying dialog boxes on the screen.

public class CommonDialog : Component

Constructors

Initializes a new instance of CommonDialog.

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

NameTypeDescription

container

An IContainer that represents the container of the CommonDialog component.

Properties

Type: Returns or sets the type of the common dialog UI control to show when calling the ShowDialog method. (Default: null)

Object: Returns or sets an object that contains data about the control. (Default: null)

String: Returns or sets the dialog box title. (Default: "")

FormWindowState: Returns or sets the initial WindowState of the common dialog. (Default: Normal)

Methods

When overridden in a derived class, resets the properties of a common dialog box to their default values.

Runs a common dialog box with a default owner.

Returns: DialogResult. OK if the user clicks OK in the dialog box; otherwise, Cancel.

Runs a common dialog box with a default owner.

ParameterTypeDescription

Optional async handler for the close event; called when the form/dialog has been closed. It's the equivalent of handling the event. When the onclose event handler is specified, the modal dialog doesn't suspend the execution on the server but it's still shown as a modal dialog on the client.

Returns: DialogResult. OK if the user clicks OK in the dialog box; otherwise, Cancel.

Runs a common dialog box with the specified owner.

ParameterTypeDescription

owner

A Form that represents the top-level window that owns the modal dialog box. It can be null.

Returns: DialogResult. OK if the user clicks OK in the dialog box; otherwise, Cancel.

Runs a common dialog box with the specified owner.

ParameterTypeDescription

owner

A Form that represents the top-level window that owns the modal dialog box. It can be null.

Optional async handler for the close event; called when the form/dialog has been closed. It's the equivalent of handling the event. When the onclose event handler is specified, the modal dialog doesn't suspend the execution on the server but it's still shown as a modal dialog on the client.

Returns: DialogResult. OK if the user clicks OK in the dialog box; otherwise, Cancel.

Runs a common dialog box with the specified owner asynchronously.

ParameterTypeDescription

A Form that represents the top-level window that owns the modal dialog box. It can be null.

Returns: Task<DialogResult>. OK if the user clicks OK in the dialog box; otherwise, Cancel.

Events

EventHandler Fired when the user clicks the Help button on a common dialog box.

Inherited By

NameDescription

Represents a common dialog box that displays available colors along with controls that enable the user to define custom colors.

Displays a dialog box from which the user can select a file.

Allows the user to select a folder from one of the Roots.

Prompts the user to open a file from the server.

Prompts the user to select a location for saving a file on the server.

Last updated