Skip to main content
Version: 4.1

CommonDialog

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

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

public class CommonDialog : Component

Constructors

Instance member CommonDialog()

Initializes a new instance of CommonDialog.

Instance member CommonDialog(container)

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

NameTypeDescription
containerIContainerAn IContainer that represents the container of the CommonDialog component.

Properties

Instance member DialogTemplate

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

Instance member Tag

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

Instance member Title

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

Instance member WindowState

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

Methods

Protected member CreateUI()

Creates the UI for the CommonDialog.

Returns: Form. An instance of Form.

Protected member Dispose(disposing)

ParameterTypeDescription
disposingBoolean

Protected member OnHelpRequested(e)

Fires the HelpRequested event.

ParameterTypeDescription
eEventArgsAn HelpEventArgs that provides the event data.

Instance member Reset()

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

Instance member ShowDialog()

Runs a common dialog box with a default owner.

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

Instance member ShowDialog(onclose)

Runs a common dialog box with a default owner.

ParameterTypeDescription
onclose optionalAction<DialogResult>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.

Instance member ShowDialog(owner)

Runs a common dialog box with the specified owner.

ParameterTypeDescription
ownerFormA 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.

Instance member ShowDialog(owner, onclose)

Runs a common dialog box with the specified owner.

ParameterTypeDescription
ownerFormA Form that represents the top-level window that owns the modal dialog box. It can be null.
onclose optionalAction<DialogResult>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.

Instance member ShowDialogAsync(owner)

Runs a common dialog box with the specified owner asynchronously.

ParameterTypeDescription
owner optionalFormA 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

Instance member HelpRequested

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

Inherited By

NameDescription
ColorDialogRepresents a common dialog box that displays available colors along with controls that enable the user to define custom colors.
FileDialogDisplays a dialog box from which the user can select a file.
FolderBrowserDialogAllows the user to select a folder from one of the Roots.
OpenFileDialogPrompts the user to open a file from the server.
SaveFileDialogPrompts the user to select a location for saving a file on the server.