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

The MessageBox type exposes the following members.

Constructors

  NameDescription
Public methodMessageBox
Initializes a new instance of the MessageBox class

Methods

  NameDescription
Protected methodAddHandlers
Adds event handlers to collections
(Inherited from MessageBox.)
Public methodClose()()()()
Closes message box with CloseResponse
(Inherited from MessageBox.)
Public methodClose(DialogResult)
If overriden in derived class closes the message box with given response
(Overrides MessageBox..::..Close(DialogResult).)
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDisplayBox()()()()
Displays the dialog non-modally (execution continues immediatelly)
(Inherited from MessageBox.)
Public methodDisplayBox(Object)
Displays the dialog non-modally (execution continues immediatelly)
(Inherited from MessageBox.)
Public methodDispose()()()()
Releases all resources used by the Component.
(Inherited from Component.)
Protected methodDispose(Boolean)
Releases all resources used by the Component.
(Overrides Component..::..Dispose(Boolean).)
Protected methodFinalize
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.)
Protected methodGetControl
Gets control from object
Protected methodGetDefaultCloseResponse
Gets default value for the CloseResponse property. The value depends on current content of Buttons collection.
(Inherited from MessageBox.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetService
Returns an object that represents a service provided by the Component or by its Container.
(Inherited from Component.)
Protected methodGetTextWithAccessKey
Gets text which contains Accesskey marker (&)
(Overrides MessageBox..::..GetTextWithAccessKey(String, Char).)
Protected methodInitializeFrom
Initializes current instance of MessageBox with setting of another MessageBox
(Inherited from MessageBox.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodModalSync
Displays modal messagebox in sync with given control
(Inherited from MessageBox.)
Protected methodOnAllowCloseChanged
Raises tha AllowCloseChanged event. Calls OnChanged(EventArgs)
(Inherited from MessageBox.)
Protected methodOnBottomControlChanged (Inherited from MessageBox.)
Protected methodOnButtonsChanged
Raises the ButtonsChanged event. Handles Radios.CollectionChanged event. Calls OnChanged(EventArgs).
(Inherited from MessageBox.)
Protected methodOnClosed
raises the Closed event
(Inherited from MessageBox.)
Protected methodOnCloseResponseChanged (Inherited from MessageBox.)
Protected methodOnComboBoxChanged
Raises the ComboBoxChanged event, calls OnChanged(EventArgs)
(Inherited from MessageBox.)
Protected methodOnCountDown
Raises the CountDown event
(Inherited from MessageBox.)
Protected methodOnCountDownStopped
Called when count-down is stopped by calling StopCountDown()()()()
(Inherited from MessageBox.)
Protected methodOnDefaultButtonChanged (Inherited from MessageBox.)
Protected methodOnChanged
Raises the Changed event
(Inherited from MessageBox.)
Protected methodOnCheckBoxesChanged
Raises the CheckBoxesChanged event. Handles Radios.CollectionChanged event. Calls OnChanged(EventArgs).
(Inherited from MessageBox.)
Protected methodOnIconChanged
Raises the IconChanged event, calls OnChanged(EventArgs)
(Inherited from MessageBox.)
Protected methodOnMidControlChanged
Raises the MidControlChanged event, calls OnChanged(EventArgs)
(Inherited from MessageBox.)
Protected methodOnOptionsChanged
Raises the OptionsChanged event, calls OnChanged(EventArgs)
(Inherited from MessageBox.)
Protected methodOnPromptChanged
Raises the PromptChanged event, calls OnChanged(EventArgs)
(Inherited from MessageBox.)
Protected methodOnRadiosChanged
Raises the RadiosChanged event. Handles Radios.CollectionChanged event. Calls OnChanged(EventArgs).
(Inherited from MessageBox.)
Protected methodOnRecycled
Raises the Recycled event
(Inherited from MessageBox.)
Protected methodOnShown
Called when dialog is shown. Performs some initialization (timer). Calls PlaySound()()()(). Raises the Shown event.
(Inherited from MessageBox.)
Protected methodOnTimeButtonChanged
Raises the TimeButtonChanged event, calls OnChanged(EventArgs)
(Inherited from MessageBox.)
Protected methodOnTimerChanged
Raises the TimerChanged event, calls OnChanged(EventArgs)
(Inherited from MessageBox.)
Protected methodOnTitleChanged
Raises the TitleChanged event, calls OnChanged(EventArgs)
(Inherited from MessageBox.)
Protected methodOnTopControlChanged
Raises the TopControlChanged event, calls OnChanged(EventArgs)
(Inherited from MessageBox.)
Protected methodPerformDialog
Shows the dialog
(Overrides MessageBox..::..PerformDialog(Boolean, Object).)
Protected methodPlaySound
If PlayOnShow is not null, plays it
(Inherited from MessageBox.)
Public methodRecycle
Switches MessageBox from Closed to CreatedState
(Inherited from MessageBox.)
Protected methodRecycleInternal
Performs all operations needed to switch MessageBox form StateClosed to Created
(Overrides MessageBox..::..RecycleInternal()()()().)
Public methodResumeCountDown()()()()
Resumes previously stopped count down timer
(Inherited from MessageBox.)
Public methodResumeCountDown(TimeSpan)
Resumes previouskly stopped count down timer with new timer value
(Inherited from MessageBox.)
Public methodSetButtons(array<MessageBox..::..MessageBoxButton>[]()[][])
Replaces Buttons with given buttons
(Inherited from MessageBox.)
Public methodSetButtons(MessageBox..::..MessageBoxButton..::..Buttons)
Replaces Buttons with buttons created from their MessageBox..::..MessageBoxButton..::..Buttons specification
(Inherited from MessageBox.)
Public methodShowDialog()()()()
Shows modal dialog (and waits until the dialog is closed)
(Inherited from MessageBox.)
Public methodShowDialog(Object)
Show modal dialog (and waits until the dialog is closed)
(Inherited from MessageBox.)
Public methodShowDialogOn
Shows dialog in sync with thread ow given control modally to give control
Public methodStopCountDown
Stops count-down timer ticking
(Inherited from MessageBox.)
Public methodToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)

Properties

  NameDescription
Public propertyAllowClose
Gets or sets value indicating if dialog can be closed without clicking any of buttons
(Inherited from MessageBox.)
Public propertyBottomControl
Gets or sets additional control displayed at bottom of the message box (below buttons)
(Inherited from MessageBox.)
Protected propertyBottomControlControl
Gets Control representation of BottomControl if possible
Public propertyButtons
Defines buttons displayed on message box
(Inherited from MessageBox.)
Protected propertyCanRaiseEvents
Gets a value indicating whether the component can raise an event.
(Inherited from Component.)
Public propertyClickedButton
Gets button user have clicked on
(Inherited from MessageBox.)
Public propertyClosedByTimer
Gets value indicationg if the message box was closed automatically after the time specified in Timer elapsed
(Inherited from MessageBox.)
Public propertyCloseResponse
Gets or sets value returned by Show(Window, String) function when user closes the message box by closing window or by pressin escape
(Inherited from MessageBox.)
Public propertyComboBox
Gets or sets combo box (drop down list) displayed in message box
(Inherited from MessageBox.)
Public propertyContainer
Gets the IContainer that contains the Component.
(Inherited from Component.)
Public propertyCurrentTimer
Gets or sets current remaining time of count-down timer
(Inherited from MessageBox.)
Public propertyDefaultButton
Indicates 0-based index of button that has focus when message box is shown and that is default button for message box
(Inherited from MessageBox.)
Protected propertyDesignMode
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.)
Public propertyDialogResult
Gets result of dialog (Result of button user has clicked on)
(Inherited from MessageBox.)
Protected propertyEvents
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.)
Public propertyForm
Gets or sets instance of MessageBoxForm that currently shows the message box
Public propertyCheckBoxes
Check boxes displayed in messaqge box
(Inherited from MessageBox.)
Public propertyIcon
Gets or sets icon image to display on the message box
(Inherited from MessageBox.)
Public propertyIsCountDown
Gets value indicationg if counting down is curently in progress
(Inherited from MessageBox.)
Public propertyMidControl
Gets or sets additional control displayed in the middle of the message box (above buttons)
(Inherited from MessageBox.)
Protected propertyMidControlControl
Gets Control representation of MidControl if possible
Public propertyOptions
Gets or sets options of the message box
(Inherited from MessageBox.)
Public propertyPlayOnShow
Gets or sets sound played when message box is shown
(Inherited from MessageBox.)
Public propertyPrompt
Gets or sets text of prompt of message box.
(Inherited from MessageBox.)
Public propertyRadios
Radio buttons displayed on message box
(Inherited from MessageBox.)
Public propertySite
Gets or sets the ISite of the Component.
(Inherited from Component.)
Public propertyState
Gets or sets value indicating current state of the message box
(Inherited from MessageBox.)
Public propertyTimeButton
Gets or sets value indicating 0-based index of button when count-down time is displayed
(Inherited from MessageBox.)
Public propertyTimer
Gets or sets value indicating for how long the message box will be displayed before it closes with CloseResponse as result.
(Inherited from MessageBox.)
Public propertyTitle
Gets or sets title text of message box
(Inherited from MessageBox.)
Public propertyTopControl
Gets or sets additional control displayed at top of the message box (above message)
(Inherited from MessageBox.)
Protected propertyTopControlControl
gets Control representation of TopControl if possible
Public propertyUseDefaultCloseResponse
Gets value indicating if the CloseResponse property has its default value
(Inherited from MessageBox.)

Events

  NameDescription
Public eventAllowCloseChanged
Raised when value of the AllowClose property changes
(Inherited from MessageBox.)
Public eventBottomControlChanged
Raised wghen value of the BottomControl property changes
(Inherited from MessageBox.)
Public eventButtonsChanged
Raised when content of the Buttons collection changes
(Inherited from MessageBox.)
Public eventClosed
Raised after dialog is closed
(Inherited from MessageBox.)
Public eventCloseResponseChanged
Raised wghen value of the CloseResponse property changes
(Inherited from MessageBox.)
Public eventComboBoxChanged
Raised wghen value of the ComboBox property changes
(Inherited from MessageBox.)
Public eventCountDown
Raised when count-down timer ticks
(Inherited from MessageBox.)
Public eventDefaultButtonChanged
Raised wghen value of the DefaultButton property changes
(Inherited from MessageBox.)
Public eventDisposed
Occurs when the component is disposed by a call to the Dispose()()()() method.
(Inherited from Component.)
Public eventChanged
Raised when value of member changes
(Inherited from MessageBox.)
Public eventCheckBoxesChanged
Raised when content of the CheckBoxes collection changes
(Inherited from MessageBox.)
Public eventIconChanged
Raised wghen value of the Icon property changes
(Inherited from MessageBox.)
Public eventMidControlChanged
Raised wghen value of the MidControl property changes
(Inherited from MessageBox.)
Public eventOptionsChanged
Raised wghen value of the Options property changes
(Inherited from MessageBox.)
Public eventPromptChanged
Raised wghen value of the Prompt property changes
(Inherited from MessageBox.)
Public eventRadiosChanged
Raised when content of the Radios collection changes
(Inherited from MessageBox.)
Public eventRecycled
Raised when instance recycling process is completed
(Inherited from MessageBox.)
Public eventShown
Raised after dialog is shown
(Inherited from MessageBox.)
Public eventTimeButtonChanged
Raised wghen value of the TimeButton property changes
(Inherited from MessageBox.)
Public eventTimerChanged
Raised wghen value of the Timer property changes
(Inherited from MessageBox.)
Public eventTitleChanged
Raised wghen value of the Title property changes
(Inherited from MessageBox.)
Public eventTopControlChanged
Raised wghen value of the TopControl property changes
(Inherited from MessageBox.)

See Also