[This is preliminary documentation and is subject to change.]

Provides technology-independent managed base class for WinForms and WPF message boxes

The MessageBox..::..MessageBoxButton type exposes the following members.

Constructors

  NameDescription
Public methodMessageBox..::..MessageBoxButton()()()()
CTor - creates new instance of the MessageBox..::..MessageBoxButton class
Public methodMessageBox..::..MessageBoxButton(MsgBoxResult)
CTor from MsgBoxResult
Public methodMessageBox..::..MessageBoxButton(String)
CTor from button text
Public methodMessageBox..::..MessageBoxButton(DialogResult)
CTor from DialogResult
Public methodMessageBox..::..MessageBoxButton(MessageBoxResult)
Public methodMessageBox..::..MessageBoxButton(MessageBox..::..MessageBoxButton)
Cloning CTor
Public methodMessageBox..::..MessageBoxButton(String, Boolean)
CTor from text and enabled value
Public methodMessageBox..::..MessageBoxButton(String, Char)
CTor from button text and access key
Public methodMessageBox..::..MessageBoxButton(String, String)
CTor from text and tool tip text
Public methodMessageBox..::..MessageBoxButton(String, DialogResult)
CTor from text and dialog result
Public methodMessageBox..::..MessageBoxButton(String, String, Char)
CTor from text, tool tip text and access key
Public methodMessageBox..::..MessageBoxButton(String, String, DialogResult)
CTor from text, tool tip text and dialog result
Public methodMessageBox..::..MessageBoxButton(String, DialogResult, Char)
CTor from text, dialog result and access key
Public methodMessageBox..::..MessageBoxButton(String, String, DialogResult, Char)
CTor from text, tool tip text, dialog result and access key
Public methodMessageBox..::..MessageBoxButton(String, DialogResult, Boolean, String)
CTor from text, dialog result, tool tip text and enabled value
Public methodMessageBox..::..MessageBoxButton(String, MessageBox..::..MessageBoxButton..::..ClickPreviewEventHandler, String, DialogResult, Boolean, Char)
CTor from text, click event handler and optionally tool tip text, dialog result, access key and enabled value

Methods

  NameDescription
Public methodStatic memberGetButtons(MsgBoxStyle)
Gets buttons specified by Visual Basic enumeration value
Public methodStatic memberGetButtons(MessageBoxButtons)
Gets buttons specified by WinForms enumeration value
Public methodStatic memberGetButtons(MessageBoxButton)
Gets buttons specified by WPF enumeration value
Public methodStatic memberGetButtons(MessageBox..::..MessageBoxButton..::..Buttons)
Gets buttons by bit aray
Protected methodOnAccessKeyChanged
Raises the AccessKeyChanged event
Protected methodOnAddedToCollection
Called after item is added to collection
(Inherited from MessageBox..::..MessageBoxControl.)
Protected methodOnClick
Called by owner window when appropriate button is clicked. Raises the ClickPreview event
Protected methodOnEnabledChanged
Raises the EnabledChanged event, calls OnChanged(EventArgs)
(Inherited from MessageBox..::..MessageBoxControl.)
Protected methodOnChanged
Raises the Changed event (and PropertyChanged when e is PropertyChangedEventArgs)
(Inherited from MessageBox..::..MessageBoxControl.)
Protected methodOnOwnerChanged
Raises the OwnerChanged event, calls OnChanged(EventArgs)
(Overrides MessageBox..::..MessageBoxControl..::..OnOwnerChanged(IReportsChange..::..ValueChangedEventArgs<(Of <<'(MessageBox>)>>)).)
Protected methodOnPropertyChanged
Raises the PropertyChanged event
(Inherited from MessageBox..::..MessageBoxControl.)
Protected methodOnRemovedFromCollection
Called after item is removed from collection (or after collection was cleared)
(Inherited from MessageBox..::..MessageBoxControl.)
Protected methodOnTextChanged (Overrides MessageBox..::..MessageBoxControl..::..OnTextChanged(IReportsChange..::..ValueChangedEventArgs<(Of <<'(String>)>>)).)
Protected methodOnToolTipChanged
Raises the ToolTipChanged event, calls OnChanged(EventArgs)
(Inherited from MessageBox..::..MessageBoxControl.)

Properties

  NameDescription
Public propertyStatic memberAbort
Default Abort button
Public propertyAccessKey
Gets or sets access key (access character for the button)
Public propertyStatic memberCancel
Default Cancel button
Protected propertyCollection
Gets collection which's owner owns this control
(Inherited from MessageBox..::..MessageBoxControl.)
Public propertyControl
Gets or sets physical control that currently implements this control
(Inherited from MessageBox..::..MessageBoxControl.)
Public propertyEnabled
Gets or sets value indicating if button is enabled (accessible) or not
(Inherited from MessageBox..::..MessageBoxControl.)
Public propertyStatic memberHelp
Default Help button
Public propertyStatic memberIgnore
Default Ignore button
Public propertyIsCancel
Gets value indicating if this button should be considered cancel button
Public propertyIsDefault
Gets value indication if this button is default of message box
Public propertyIsTime
Gets value indicating if this button is timer button
Public propertyStatic memberNo
Defaut No button
Public propertyStatic memberOK
Default OK button
Public propertyOwnerMessageBox
Gets messagebox this control is owned by
(Inherited from MessageBox..::..MessageBoxControl.)
Public propertyResult
Gets or sets result produced by this button
Public propertyStatic memberRetry
Default Retry button
Public propertyText
Gets or sets text displayed on control
(Inherited from MessageBox..::..MessageBoxControl.)
Public propertyTextIncludingAccessKey
Gets text of button with platform-specific accesskey indication
Public propertyTextIncludingAccessKeyAndTimer
Gets text of button with possible time text and platform-specific accesskey indication
Public propertyTextIncludingTimer
Gets text of button with with possible time text
Public propertyToolTip
Gets or sets tool tip text for the button
(Inherited from MessageBox..::..MessageBoxControl.)
Public propertyStatic memberYes
Default Yes button

Events

  NameDescription
Public eventAccessKeyChanged
Raised when value of the AccessKey property changes
Public eventClickPreview
Raised when button is clicked, before action associated with the button is taken. This event can be canceled.
Public eventEnabledChanged
Raised when value of the Enabled property changes
(Inherited from MessageBox..::..MessageBoxControl.)
Public eventChanged
Raised when value of member changes
(Inherited from MessageBox..::..MessageBoxControl.)
Public eventOwnerChanged
Raised when value of the OwnerMessageBox property changes
(Inherited from MessageBox..::..MessageBoxControl.)
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from MessageBox..::..MessageBoxControl.)
Public eventResultChanged
Raised when value of the Result property changes
Public eventTextChanged
Raised when value of the Text property changes
(Inherited from MessageBox..::..MessageBoxControl.)
Public eventToolTipChanged
Raised when value of the ToolTip property changes
(Inherited from MessageBox..::..MessageBoxControl.)

Explicit Interface Implementations

See Also