Table of Contents

Class ExMessageBoxForm

Namespace
ExControls
Assembly
ExControls.dll

Represents the dialog window displayed by ExMessageBox.

public class ExMessageBoxForm : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Inheritance
ExMessageBoxForm
Implements
Inherited Members
Extension Methods

Constructors

ExMessageBoxForm(ExMessageBoxStyle?, MessageBoxIcon)

Initializes a new instance of the ExMessageBoxForm class.

public ExMessageBoxForm(ExMessageBoxStyle? style, MessageBoxIcon icon = MessageBoxIcon.None)

Parameters

style ExMessageBoxStyle

The style applied to the window, or null to keep the default look.

icon MessageBoxIcon

The icon of the message, which selects the system sound played when the window is shown.

Properties

Buttons

Gets or sets the set of buttons shown in the window, which together with DefaultButton selects the button that displays the countdown.

[Browsable(false)]
public MessageBoxButtons Buttons { get; set; }

Property Value

MessageBoxButtons

Countdown

Gets or sets the number of seconds after which the window closes itself; zero or less disables the countdown.

[Browsable(false)]
public int Countdown { get; set; }

Property Value

int

CreateParams

Gets the required creation parameters when the control handle is created.

protected override CreateParams CreateParams { get; }

Property Value

CreateParams

A CreateParams that contains the required creation parameters when the handle to the control is created.

DefaultButton

Gets or sets the default button of the window, which displays the remaining seconds of the countdown.

[Browsable(false)]
public MessageBoxDefaultButton DefaultButton { get; set; }

Property Value

MessageBoxDefaultButton

MessageIcon

Gets or sets the icon of the message, which selects the system sound played when the window is shown.

[Browsable(false)]
public MessageBoxIcon MessageIcon { get; set; }

Property Value

MessageBoxIcon

Style

Gets the style applied to the window, or null if the default look is used.

public ExMessageBoxStyle? Style { get; }

Property Value

ExMessageBoxStyle

Methods

Dispose(bool)

Clean up any resources being used.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true if managed resources should be disposed; otherwise, false.

OnHelpRequested(HelpEventArgs)

Raises the HelpRequested event.

protected override void OnHelpRequested(HelpEventArgs hevent)

Parameters

hevent HelpEventArgs

A HelpEventArgs that contains the event data.