[This is preliminary documentation and is subject to change.]
The MessageBox type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| MessageBox | Initializes a new instance of the MessageBox class |
Methods
| Name | Description | |
|---|---|---|
| AddHandlers | Adds event handlers to collections (Inherited from MessageBox.) | |
| Close()()()() | Closes message box with CloseResponse (Inherited from MessageBox.) | |
| Close(DialogResult) | If overriden in derived class closes the message box with given response (Overrides MessageBox..::..Close(DialogResult).) | |
| 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.) | |
| DisplayBox()()()() | Displays the dialog non-modally (execution continues immediatelly) (Inherited from MessageBox.) | |
| DisplayBox(Object) | Displays the dialog non-modally (execution continues immediatelly) (Inherited from MessageBox.) | |
| Dispose()()()() | Releases all resources used by the Component. (Inherited from Component.) | |
| Dispose(Boolean) | Releases all resources used by the Component. (Overrides Component..::..Dispose(Boolean).) | |
| Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.) | |
| GetControl | Gets control from object | |
| GetDefaultCloseResponse | Gets default value for the CloseResponse property. The value depends on current content of Buttons collection. (Inherited from MessageBox.) | |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| GetService | (Inherited from Component.) | |
| GetTextWithAccessKey | Gets text which contains Accesskey marker (&) (Overrides MessageBox..::..GetTextWithAccessKey(String, Char).) | |
| InitializeFrom | Initializes current instance of MessageBox with setting of another MessageBox (Inherited from MessageBox.) | |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| MemberwiseClone | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
| ModalSync | Displays modal messagebox in sync with given control (Inherited from MessageBox.) | |
| OnAllowCloseChanged | Raises tha AllowCloseChanged event. Calls OnChanged(EventArgs) (Inherited from MessageBox.) | |
| OnBottomControlChanged | Raises the BottomControlChanged event, calls OnChanged(EventArgs) (Inherited from MessageBox.) | |
| OnButtonsChanged | Raises the ButtonsChanged event. Handles Radios.CollectionChanged event. Calls OnChanged(EventArgs). (Inherited from MessageBox.) | |
| OnClosed | raises the Closed event (Inherited from MessageBox.) | |
| OnCloseResponseChanged | Raises the OnCloseResponseChanged(IReportsChange..::..ValueChangedEventArgs<(Of <<'(DialogResult>)>>)) event, calls OnChanged(EventArgs) (Inherited from MessageBox.) | |
| OnComboBoxChanged | Raises the ComboBoxChanged event, calls OnChanged(EventArgs) (Inherited from MessageBox.) | |
| OnCountDown | Raises the CountDown event (Inherited from MessageBox.) | |
| OnCountDownStopped | Called when count-down is stopped by calling StopCountDown()()()() (Inherited from MessageBox.) | |
| OnDefaultButtonChanged | Raises the DefaultButtonChanged event, calls OnChanged(EventArgs) (Inherited from MessageBox.) | |
| OnChanged | Raises the Changed event (Inherited from MessageBox.) | |
| OnCheckBoxesChanged | Raises the CheckBoxesChanged event. Handles Radios.CollectionChanged event. Calls OnChanged(EventArgs). (Inherited from MessageBox.) | |
| OnIconChanged | Raises the IconChanged event, calls OnChanged(EventArgs) (Inherited from MessageBox.) | |
| OnMidControlChanged | Raises the MidControlChanged event, calls OnChanged(EventArgs) (Inherited from MessageBox.) | |
| OnOptionsChanged | Raises the OptionsChanged event, calls OnChanged(EventArgs) (Inherited from MessageBox.) | |
| OnPromptChanged | Raises the PromptChanged event, calls OnChanged(EventArgs) (Inherited from MessageBox.) | |
| OnRadiosChanged | (Inherited from MessageBox.) | |
| OnRecycled | Raises the Recycled event (Inherited from MessageBox.) | |
| OnShown | Called when dialog is shown. Performs some initialization (timer). Calls PlaySound()()()(). Raises the Shown event. (Inherited from MessageBox.) | |
| OnTimeButtonChanged | Raises the TimeButtonChanged event, calls OnChanged(EventArgs) (Inherited from MessageBox.) | |
| OnTimerChanged | Raises the TimerChanged event, calls OnChanged(EventArgs) (Inherited from MessageBox.) | |
| OnTitleChanged | Raises the TitleChanged event, calls OnChanged(EventArgs) (Inherited from MessageBox.) | |
| OnTopControlChanged | Raises the TopControlChanged event, calls OnChanged(EventArgs) (Inherited from MessageBox.) | |
| PerformDialog | Shows the dialog (Overrides MessageBox..::..PerformDialog(Boolean, Object).) | |
| PlaySound | If PlayOnShow is not null, plays it (Inherited from MessageBox.) | |
| Recycle | (Inherited from MessageBox.) | |
| RecycleInternal | (Overrides MessageBox..::..RecycleInternal()()()().) | |
| ResumeCountDown()()()() | Resumes previously stopped count down timer (Inherited from MessageBox.) | |
| ResumeCountDown(TimeSpan) | Resumes previouskly stopped count down timer with new timer value (Inherited from MessageBox.) | |
| SetButtons(array<MessageBox..::..MessageBoxButton>[]()[][]) | Replaces Buttons with given buttons (Inherited from MessageBox.) | |
| SetButtons(MessageBox..::..MessageBoxButton..::..Buttons) | Replaces Buttons with buttons created from their MessageBox..::..MessageBoxButton..::..Buttons specification (Inherited from MessageBox.) | |
| ShowDialog()()()() | Shows modal dialog (and waits until the dialog is closed) (Inherited from MessageBox.) | |
| ShowDialog(Object) | Show modal dialog (and waits until the dialog is closed) (Inherited from MessageBox.) | |
| ShowDialogOn | Shows dialog in sync with thread ow given control modally to give control | |
| StopCountDown | Stops count-down timer ticking (Inherited from MessageBox.) | |
| ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.) |
Properties
| Name | Description | |
|---|---|---|
| AllowClose | Gets or sets value indicating if dialog can be closed without clicking any of buttons (Inherited from MessageBox.) | |
| BottomControl | Gets or sets additional control displayed at bottom of the message box (below buttons) (Inherited from MessageBox.) | |
| BottomControlControl | Gets Control representation of BottomControl if possible | |
| Buttons | Defines buttons displayed on message box (Inherited from MessageBox.) | |
| CanRaiseEvents | Gets a value indicating whether the component can raise an event. (Inherited from Component.) | |
| ClickedButton | Gets button user have clicked on (Inherited from MessageBox.) | |
| ClosedByTimer | Gets value indicationg if the message box was closed automatically after the time specified in Timer elapsed (Inherited from MessageBox.) | |
| CloseResponse | 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.) | |
| ComboBox | Gets or sets combo box (drop down list) displayed in message box (Inherited from MessageBox.) | |
| Container | Gets the IContainer that contains the Component. (Inherited from Component.) | |
| CurrentTimer | Gets or sets current remaining time of count-down timer (Inherited from MessageBox.) | |
| DefaultButton | 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.) | |
| 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) (Inherited from MessageBox.) | |
| Events | Gets the list of event handlers that are attached to this Component. (Inherited from Component.) | |
| Form | Gets or sets instance of MessageBoxForm that currently shows the message box | |
| CheckBoxes | Check boxes displayed in messaqge box (Inherited from MessageBox.) | |
| Icon | Gets or sets icon image to display on the message box (Inherited from MessageBox.) | |
| IsCountDown | Gets value indicationg if counting down is curently in progress (Inherited from MessageBox.) | |
| MidControl | Gets or sets additional control displayed in the middle of the message box (above buttons) (Inherited from MessageBox.) | |
| MidControlControl | Gets Control representation of MidControl if possible | |
| Options | Gets or sets options of the message box (Inherited from MessageBox.) | |
| PlayOnShow | Gets or sets sound played when message box is shown (Inherited from MessageBox.) | |
| Prompt | Gets or sets text of prompt of message box. (Inherited from MessageBox.) | |
| Radios | Radio buttons displayed on message box (Inherited from MessageBox.) | |
| Site | (Inherited from Component.) | |
| State | Gets or sets value indicating current state of the message box (Inherited from MessageBox.) | |
| TimeButton | Gets or sets value indicating 0-based index of button when count-down time is displayed (Inherited from MessageBox.) | |
| Timer | Gets or sets value indicating for how long the message box will be displayed before it closes with CloseResponse as result. (Inherited from MessageBox.) | |
| Title | Gets or sets title text of message box (Inherited from MessageBox.) | |
| TopControl | Gets or sets additional control displayed at top of the message box (above message) (Inherited from MessageBox.) | |
| TopControlControl | gets Control representation of TopControl if possible | |
| UseDefaultCloseResponse | Gets value indicating if the CloseResponse property has its default value (Inherited from MessageBox.) |
Events
| Name | Description | |
|---|---|---|
| AllowCloseChanged | Raised when value of the AllowClose property changes (Inherited from MessageBox.) | |
| BottomControlChanged | Raised wghen value of the BottomControl property changes (Inherited from MessageBox.) | |
| ButtonsChanged | Raised when content of the Buttons collection changes (Inherited from MessageBox.) | |
| Closed | Raised after dialog is closed (Inherited from MessageBox.) | |
| CloseResponseChanged | Raised wghen value of the CloseResponse property changes (Inherited from MessageBox.) | |
| ComboBoxChanged | Raised wghen value of the ComboBox property changes (Inherited from MessageBox.) | |
| CountDown | Raised when count-down timer ticks (Inherited from MessageBox.) | |
| DefaultButtonChanged | Raised wghen value of the DefaultButton property changes (Inherited from MessageBox.) | |
| Disposed | Occurs when the component is disposed by a call to the Dispose()()()() method. (Inherited from Component.) | |
| Changed | Raised when value of member changes (Inherited from MessageBox.) | |
| CheckBoxesChanged | Raised when content of the CheckBoxes collection changes (Inherited from MessageBox.) | |
| IconChanged | Raised wghen value of the Icon property changes (Inherited from MessageBox.) | |
| MidControlChanged | Raised wghen value of the MidControl property changes (Inherited from MessageBox.) | |
| OptionsChanged | Raised wghen value of the Options property changes (Inherited from MessageBox.) | |
| PromptChanged | Raised wghen value of the Prompt property changes (Inherited from MessageBox.) | |
| RadiosChanged | Raised when content of the Radios collection changes (Inherited from MessageBox.) | |
| Recycled | Raised when instance recycling process is completed (Inherited from MessageBox.) | |
| Shown | Raised after dialog is shown (Inherited from MessageBox.) | |
| TimeButtonChanged | Raised wghen value of the TimeButton property changes (Inherited from MessageBox.) | |
| TimerChanged | Raised wghen value of the Timer property changes (Inherited from MessageBox.) | |
| TitleChanged | Raised wghen value of the Title property changes (Inherited from MessageBox.) | |
| TopControlChanged | Raised wghen value of the TopControl property changes (Inherited from MessageBox.) |