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

The MessageBox type exposes the following members.

Constructors

  NameDescription
MessageBox
Default CTor - creates messagebox with just one button OK

Methods

  NameDescription
AddHandlers
Adds event handlers to collections
CloseOverloaded.
ConvertIconConstantOverloaded.
CreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
DisplayBoxOverloaded.
DisplayTemplateOverloaded.
DisposeOverloaded.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Error_X
Displays modal message box with information about Exception
Error_XBI
Displays modal message box with information about Exception
Error_XBWI
Displays modal message box with information about Exception
Error_XPTIBWO
Displays modal message box with information about Exception
Error_XT
Displays modal message box with information about Exception and custom title
Error_XTBI
Displays modal message box with information about Exception
Error_XTBWI
Displays modal message box with information about Exception
Error_XTW
Displays modal message box with information about Exception with given title and owner
Finalize
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.)
GetAssociatedSound
Gets sound associated with given icon
GetDefault
Gets instance of default implementation of message box
GetDefaultCloseResponse
Gets default value for the CloseResponse property. The value depends on current content of Buttons collection.
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetIcon
Default function used for converting enumeration values to icons for message box
GetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
GetService
Returns an object that represents a service provided by the Component or by its Container.
(Inherited from Component.)
GetTextWithAccessKeyOverloaded.
GetType
Gets the Type of the current instance.
(Inherited from Object.)
InitializeDafault
Initializes instance of MessageBox obtained via GetDefault()()() using InitializeFrom(MessageBox)
InitializeFrom
Initializes current instance of MessageBox with setting of another MessageBox
InitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
MemberwiseCloneOverloaded.
Modal_P
Displays modal message box with given prompt
Modal_PB
Displays modal message box with given prompt and buttons
Modal_PT
Displays modal message box with given prompt and title
Modal_PTB
Displays modal message box with given promt, title and buttons
Modal_PTBIOverloaded.
Modal_PTIOverloaded.
Modal_PTIB
Displays modal message box with given prompt, title, custom icon and custom buttons
Modal_PTMBIOWOverloaded.
Modal_PTOBIS
Displays modal message box with given prompt, tile and options. Optinally also buttons and icon.
Modal_PTOIB
Displays modal message box with given prompt, title, options, custom icon and custom buttons
Modal_PTOIBS
Displays modal message box with given prompt, tile and options and custom icon. Optinally also buttons.
Modal_PTWBIO
Display modal message box with given prompt, title and owner. Optionally specifies buttons, icon and options
ModalEx_PTB
Displays modal message box with given prompt, title and buttons
ModalEx_PTEIOWMHS
Displays modal messagebox with given prompt, title, items and optionally icon, options, owner, timer, show handler and sound
ModalEx_PTIOWMHE
Displays modal messagebox with given prompt, title, items, icon, options, owner, timer and show handler
ModalEx_PTIWB
Displays modal message box with given prompt, title, icon and owner and buttons
ModalEx_PTIWMHB
Displays modal message box with given prompt, title, icon, owner, timer, show ahndler and buttons
ModalEx_PTIWMHE
Displays modal message box with given prompt, title, icon, owner, timer, show ahndler and items
ModalEx_PTIWS
Displays modal message box with given prompt, title, icon, owner and items
ModalEx_PTS
Displays modal message box with given prompt, title and items
ModalF_Pa
Displays modal message box with formated prompt
ModalF_PTa
Displays modal message box with formated prompt and given title
ModalF_PTBa
Displays modal message box with formate prompt, given title an buttons
ModalF_PTBIaOverloaded.
ModalF_PTIaOverloaded.
ModalF_PTOa
Displays modal message box with formated prompt, given title and options
ModalF_PTOBa
Displays modal message box with formated prompt, given title, options and buttons
ModalF_PTOBIaOverloaded.
ModalF_PTOBISa
Displays modal message box with formated prompt, given title, options, buttons and custom icon
ModalF_PTOIaOverloaded.
ModalF_PTOISa
Displays modal message box with formated prompt, given title, options and custom icon
ModalF_PTWa
Dsiplays modal message box with formated prompt, given title and owner
ModalF_PTWBIa
Display modal message box with formated promt, given title, owner, buttons, icon
ModalSync
Displays modal messagebox in sync with given control
ModalSyncTemplate
Displays modal message box in sync with given control
MsgBox
Displays a message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked.
OnAllowCloseChanged
Raises tha AllowCloseChanged event. Calls OnChanged(EventArgs)
OnBottomControlChanged
OnButtonsChanged
Raises the ButtonsChanged event. Handles Radios.CollectionChanged event. Calls OnChanged(EventArgs).
OnClosed
raises the Closed event
OnCloseResponseChanged
OnComboBoxChanged
Raises the ComboBoxChanged event, calls OnChanged(EventArgs)
OnCountDown
Raises the CountDown event
OnCountDownStopped
Called when count-down is stopped by calling StopCountDown()()()
OnDefaultButtonChanged
OnChanged
Raises the Changed event
OnCheckBoxesChanged
Raises the CheckBoxesChanged event. Handles Radios.CollectionChanged event. Calls OnChanged(EventArgs).
OnIconChanged
Raises the IconChanged event, calls OnChanged(EventArgs)
OnMidControlChanged
Raises the MidControlChanged event, calls OnChanged(EventArgs)
OnOptionsChanged
Raises the OptionsChanged event, calls OnChanged(EventArgs)
OnPromptChanged
Raises the PromptChanged event, calls OnChanged(EventArgs)
OnRadiosChanged
Raises the RadiosChanged event. Handles Radios.CollectionChanged event. Calls OnChanged(EventArgs).
OnRecycled
Raises the Recycled event
OnShown
Called when dialog is shown. Performs some initialization (timer). Calls PlaySound()()(). Raises the Shown event.
OnTimeButtonChanged
Raises the TimeButtonChanged event, calls OnChanged(EventArgs)
OnTimerChanged
Raises the TimerChanged event, calls OnChanged(EventArgs)
OnTitleChanged
Raises the TitleChanged event, calls OnChanged(EventArgs)
OnTopControlChanged
Raises the TopControlChanged event, calls OnChanged(EventArgs)
PerformDialog
If overriden in derived class shows the dialog
PlaySound
If PlayOnShow is not null, plays it
Recycle
Switches MessageBox from Closed to CreatedState
RecycleInternal
Performs all operations needed to switch MessageBox form StateClosed to Created
ResumeCountDownOverloaded.
SetButtonsOverloaded.
ShowOverloaded.
ShowDialogOverloaded.
ShowTemplateOverloaded.
ShowWPFOverloaded.
StopCountDown
Stops count-down timer ticking
ToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)

Fields

  NameDescription
HelpDialogResult
Value of the Result property for predefined Help button
TimerFormat
Recomended format for displaying timer.

Properties

  NameDescription
AllowClose
Gets or sets value indicating if dialog can be closed without clicking any of buttons
BottomControl
Gets or sets additional control displayed at bottom of the message box (below buttons)
Buttons
Defines buttons displayed on message box
CanRaiseEvents
Gets a value indicating whether the component can raise an event.
(Inherited from Component.)
ClickedButton
Gets button user have clicked on
ClosedByTimer
Gets value indicationg if the message box was closed automatically after the time specified in Timer elapsed
CloseResponse
Gets or sets value returned by Show(Window, String) function when user closes the message box by closing window or by pressin escape
ComboBox
Gets or sets combo box (drop down list) displayed in message box
Container
Gets the IContainer that contains the Component.
(Inherited from Component.)
CurrentTimer
Gets or sets current remaining time of count-down timer
DefaultButton
Indicates 0-based index of button that has focus when message box is shown and that is default button for message box
DefaultImplementation
Gets or sets default implementation used for messageboxes shown by static Show(Window, String) methods of this class
DesignMode
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.)
DialogResult
Gets result of dialog (Result of button user has clicked on)
Events
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.)
GetIconDelegate
Gets or sets delegate which is used for converting enumeration values to icons for message box
CheckBoxes
Check boxes displayed in messaqge box
Icon
Gets or sets icon image to display on the message box
IsCountDown
Gets value indicationg if counting down is curently in progress
MidControl
Gets or sets additional control displayed in the middle of the message box (above buttons)
Options
Gets or sets options of the message box
PlayOnShow
Gets or sets sound played when message box is shown
Prompt
Gets or sets text of prompt of message box.
Radios
Radio buttons displayed on message box
Site
Gets or sets the ISite of the Component.
(Inherited from Component.)
State
Gets or sets value indicating current state of the message box
TimeButton
Gets or sets value indicating 0-based index of button when count-down time is displayed
Timer
Gets or sets value indicating for how long the message box will be displayed before it closes with CloseResponse as result.
Title
Gets or sets title text of message box
TopControl
Gets or sets additional control displayed at top of the message box (above message)
UseDefaultCloseResponse
Gets value indicating if the CloseResponse property has its default value

Events

  NameDescription
AllowCloseChanged
Raised when value of the AllowClose property changes
BottomControlChanged
Raised wghen value of the BottomControl property changes
ButtonsChanged
Raised when content of the Buttons collection changes
Closed
Raised after dialog is closed
CloseResponseChanged
Raised wghen value of the CloseResponse property changes
ComboBoxChanged
Raised wghen value of the ComboBox property changes
CountDown
Raised when count-down timer ticks
DefaultButtonChanged
Raised wghen value of the DefaultButton property changes
Disposed
Occurs when the component is disposed by a call to the Dispose()()() method.
(Inherited from Component.)
Changed
Raised when value of member changes
CheckBoxesChanged
Raised when content of the CheckBoxes collection changes
IconChanged
Raised wghen value of the Icon property changes
MidControlChanged
Raised wghen value of the MidControl property changes
OptionsChanged
Raised wghen value of the Options property changes
PromptChanged
Raised wghen value of the Prompt property changes
RadiosChanged
Raised when content of the Radios collection changes
Recycled
Raised when instance recycling process is completed
Shown
Raised after dialog is shown
TimeButtonChanged
Raised wghen value of the TimeButton property changes
TimerChanged
Raised wghen value of the Timer property changes
TitleChanged
Raised wghen value of the Title property changes
TopControlChanged
Raised wghen value of the TopControl property changes

See Also