[This is preliminary documentation and is subject to change.]
The MessageBox type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| MessageBox | Default CTor - creates messagebox with just one button OK |
Methods
| Name | Description | |
|---|---|---|
| AddHandlers | Adds event handlers to collections | |
| Close()()()() | Closes message box with CloseResponse | |
| Close(DialogResult) | If overriden in derived class closes the message box with given response | |
| ConvertIconConstant(MsgBoxStyle) | Converts MsgBoxStyle to MessageBox..::..MessageBoxIcons value | |
| ConvertIconConstant(MessageBoxIcon) | Converts MessageBoxIcon to MessageBox..::..MessageBoxIcons value | |
| ConvertIconConstant(MessageBoxImage) | Converts MessageBoxImage to MessageBox..::..MessageBoxIcons value | |
| 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) | |
| DisplayBox(Object) | Displays the dialog non-modally (execution continues immediatelly) | |
| DisplayTemplate(MessageBox, Object, String, String) | Display default (GetDefault()()()()) message box initialized with given instance of MessageBox modeless | |
| DisplayTemplate(MessageBox, MessageBox, Object, String, String) | Display given message box initialized with given instance of MessageBox modeless | |
| Dispose()()()() | Releases all resources used by the Component. (Inherited from Component.) | |
| Dispose(Boolean) | Releases the unmanaged resources used by the Component and optionally releases the managed resources. (Inherited from Component.) | |
| 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 | |
| Error_XW | Displays modal message box with information about given Exception modal to giwen 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. | |
| 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 | (Inherited from Component.) | |
| GetTextWithAccessKey(String, Char) | When overriden in derived class gets text which contains Accesskey marker (like & in WinForms or _ in WPF) | |
| GetTextWithAccessKey(String, Char, Char) | Creates accesskey text by prepending given char before accesskey character | |
| InitializeDafault | ||
| 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.) | |
| MemberwiseClone | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
| 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_PTBI(String, String, MessageBox..::..MessageBoxButton..::..Buttons, Image) | Displays modal message with given prompt, title, buttons and custom icon | |
| Modal_PTBI(String, String, MessageBox..::..MessageBoxButton..::..Buttons, MessageBox..::..MessageBoxIcons) | Displays modal message with given prompt, title, buttons and icon | |
| Modal_PTI(String, String, Image) | Displays modal message box with given prompt, title and custom icon | |
| Modal_PTI(String, String, MessageBox..::..MessageBoxIcons) | Displays modal message box with given prompt, title and icon | |
| Modal_PTIB | Displays modal message box with given prompt, title, custom icon and custom buttons | |
| Modal_PTIW(String, String, Image, Object) | Displays modal messagebox with given prompt, title and custom icon. Message box is modal to given owner. | |
| Modal_PTIW(String, String, MessageBox..::..MessageBoxIcons, Object) | Displays modal messagebox with given prompt, title and icon. Message box is modal to given owner. | |
| Modal_PTMBIOW(String, String, Int32, MessageBox..::..MessageBoxButton..::..Buttons, Image, MessageBox..::..MessageBoxOptions, Object) | Displays autoclosing modal message box | |
| Modal_PTMBIOW(String, String, TimeSpan, MessageBox..::..MessageBoxButton..::..Buttons, Image, MessageBox..::..MessageBoxOptions, Object) | Displays autoclosing modal message box | |
| 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_PTBIa(String, String, MessageBox..::..MessageBoxButton..::..Buttons, Image, array<Object>[]()[][]) | Displays modal message with formated prompt, given title, buttons and custom icon | |
| ModalF_PTBIa(String, String, MessageBox..::..MessageBoxButton..::..Buttons, MessageBox..::..MessageBoxIcons, array<Object>[]()[][]) | Displays modal message with formated prompt, given title, buttons and icon | |
| ModalF_PTIa(String, String, Image, array<Object>[]()[][]) | Displays modal message box with formated prompt, given title and custom icon | |
| ModalF_PTIa(String, String, MessageBox..::..MessageBoxIcons, array<Object>[]()[][]) | Displays modal message box with formated prompt, given title and icon | |
| 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_PTOBIa(String, String, MessageBox..::..MessageBoxOptions, MessageBox..::..MessageBoxButton..::..Buttons, Image, array<Object>[]()[][]) | Displays modal message box with formated prompt, given title, options, buttons and custom icon | |
| ModalF_PTOBIa(String, String, MessageBox..::..MessageBoxOptions, MessageBox..::..MessageBoxButton..::..Buttons, MessageBox..::..MessageBoxIcons, array<Object>[]()[][]) | Displays modal message box with formated prompt, given title, options, buttons and predefined icon | |
| ModalF_PTOBISa | Displays modal message box with formated prompt, given title, options, buttons and custom icon | |
| ModalF_PTOIa(String, String, MessageBox..::..MessageBoxOptions, Image, array<Object>[]()[][]) | Displays modal message box with formated prompt, given title, options and custom icon | |
| ModalF_PTOIa(String, String, MessageBox..::..MessageBoxOptions, MessageBox..::..MessageBoxIcons, array<Object>[]()[][]) | Displays modal message box with formated prompt, given title, options and predefined icon | |
| 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(String, String, Object, MessageBox..::..MessageBoxButton..::..Buttons, Image, array<Object>[]()[][]) | Display modal message box with formated promt, given title, owner, buttons, icon | |
| ModalF_PTWBIa(String, String, Object, MessageBox..::..MessageBoxButton..::..Buttons, MessageBox..::..MessageBoxIcons, array<Object>[]()[][]) | Display modal message box with formated promt, given title, owner, buttons, one of predefined icons | |
| 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. | |
| MsgBoxF | Displays a formatted message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked. | |
| MsgBoxFW | Displays a formatted message in a dialog box modal to given object, 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 | Raises the BottomControlChanged event, calls OnChanged(EventArgs) | |
| 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 | Raises the DefaultButtonChanged event, calls OnChanged(EventArgs) | |
| 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 | ||
| 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 | ||
| RecycleInternal | ||
| ResumeCountDown()()()() | Resumes previously stopped count down timer | |
| ResumeCountDown(TimeSpan) | Resumes previouskly stopped count down timer with new timer value | |
| SetButtons(array<MessageBox..::..MessageBoxButton>[]()[][]) | Replaces Buttons with given buttons | |
| SetButtons(MessageBox..::..MessageBoxButton..::..Buttons) | Replaces Buttons with buttons created from their MessageBox..::..MessageBoxButton..::..Buttons specification | |
| Show(String) | Displays a message box with specified text. | |
| Show(Object, String) | Displays a message box in front of the specified object and with the specified text. | |
| Show(String, String) | Displays a message box with specified text and caption. | |
| Show(Window, String) | Displays a message box in front of the specified window. The message box displays a message and returns a result. | |
| Show(Object, String, String) | Displays a message box in front of the specified object and with the specified text and caption. | |
| Show(String, String, MessageBoxButtons) | Displays a message box with specified text, caption, and buttons. | |
| Show(String, String, MessageBoxButton) | Displays a message box that has a message, title bar caption, and button; and that returns a result. | |
| Show(Window, String, String) | Displays a message box in front of the specified window. The message box displays a message and title bar caption; and it returns a result. | |
| Show(Object, String, String, MessageBoxButtons) | Displays a message box in front of the specified object and with the specified text, caption, and buttons. | |
| Show(String, String, MessageBoxButtons, MessageBoxIcon) | Displays a message box with specified text, caption, buttons, and icon. | |
| Show(String, String, MessageBoxButtons, MessageBox..::..MessageBoxIcons) | Displays a message box with specified text, caption, buttons, and icon. | |
| Show(String, String, MessageBoxButton, MessageBoxImage) | Displays a message box that has a message, title bar caption, button, and icon; and that returns a result. | |
| Show(String, String, MessageBoxButton, MessageBox..::..MessageBoxIcons) | Displays a message box that has a message, title bar caption, button, and icon; and that returns a result. | |
| Show(Window, String, String, MessageBoxButton) | Displays a message box in front of the specified window. The message box displays a message, title bar caption, and button; and it also returns a result. | |
| Show(Object, String, String, MessageBoxButtons, MessageBoxIcon) | Displays a message box in front of the specified object and with the specified text, caption, buttons, and icon. | |
| Show(Object, String, String, MessageBoxButtons, MessageBox..::..MessageBoxIcons) | Displays a message box in front of the specified object and with the specified text, caption, buttons, and icon. | |
| Show(String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton) | Displays a message box with the specified text, caption, buttons, icon, and default button. | |
| Show(String, String, MessageBoxButtons, MessageBox..::..MessageBoxIcons, MessageBoxDefaultButton) | Displays a message box with the specified text, caption, buttons, icon, and default button. | |
| Show(String, String, MessageBoxButton, MessageBoxImage, MessageBoxResult) | Displays a message box that has a message, title bar caption, button, and icon; and that accepts a default message box result and returns a result. | |
| Show(String, String, MessageBoxButton, MessageBox..::..MessageBoxIcons, MessageBoxResult) | Displays a message box that has a message, title bar caption, button, and icon; and that accepts a default message box result and returns a result. | |
| Show(Window, String, String, MessageBoxButton, MessageBoxImage) | Displays a message box in front of the specified window. The message box displays a message, title bar caption, button, and icon; and it also returns a result. | |
| Show(Window, String, String, MessageBoxButton, MessageBox..::..MessageBoxIcons) | Displays a message box in front of the specified window. The message box displays a message, title bar caption, button, and icon; and it also returns a result. | |
| Show(Object, String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton) | Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, and default button. | |
| Show(Object, String, String, MessageBoxButtons, MessageBox..::..MessageBoxIcons, MessageBoxDefaultButton) | Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, and default button. | |
| Show(String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions) | Displays a message box with the specified text, caption, buttons, icon, default button, and options. | |
| Show(String, String, MessageBoxButtons, MessageBox..::..MessageBoxIcons, MessageBoxDefaultButton, MessageBoxOptions) | Displays a message box with the specified text, caption, buttons, icon, default button, and options. | |
| Show(String, String, MessageBoxButton, MessageBoxImage, MessageBoxResult, MessageBoxOptions) | Displays a message box that has a message, title bar caption, button, and icon; and that accepts a default message box result, complies with the specified options, and returns a result. | |
| Show(String, String, MessageBoxButton, MessageBox..::..MessageBoxIcons, MessageBoxResult, MessageBoxOptions) | Displays a message box that has a message, title bar caption, button, and icon; and that accepts a default message box result, complies with the specified options, and returns a result. | |
| Show(Window, String, String, MessageBoxButton, MessageBoxImage, MessageBoxResult) | Displays a message box in front of the specified window. The message box displays a message, title bar caption, button, and icon; and accepts a default message box result and returns a result. | |
| Show(Window, String, String, MessageBoxButton, MessageBox..::..MessageBoxIcons, MessageBoxResult) | Displays a message box in front of the specified window. The message box displays a message, title bar caption, button, and icon; and accepts a default message box result and returns a result. | |
| Show(Object, String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions) | Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, default button, and options. | |
| Show(Object, String, String, MessageBoxButtons, MessageBox..::..MessageBoxIcons, MessageBoxDefaultButton, MessageBoxOptions) | Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, default button, and options. | |
| Show(Window, String, String, MessageBoxButton, MessageBoxImage, MessageBoxResult, MessageBoxOptions) | Displays a message box in front of the specified window. The message box displays a message, title bar caption, button, and icon; and accepts a default message box result, complies with the specified options, and returns a result. | |
| Show(Window, String, String, MessageBoxButton, MessageBox..::..MessageBoxIcons, MessageBoxResult, MessageBoxOptions) | Displays a message box in front of the specified window. The message box displays a message, title bar caption, button, and icon; and accepts a default message box result, complies with the specified options, and returns a result. | |
| ShowDialog()()()() | Shows modal dialog (and waits until the dialog is closed) | |
| ShowDialog(Object) | Show modal dialog (and waits until the dialog is closed) | |
| ShowTemplate(MessageBox, Object, String, String) | Shows default (GetDefault()()()()) modal message box initialized with given instance of MessageBox | |
| ShowTemplate(MessageBox, MessageBox, Object, String, String) | Shows given modal message box initialized with given instance of MessageBox | |
| ShowWPF(String) | Displays a message box that has a message and that returns a result. | |
| ShowWPF(String, String) | Displays a message box that has a message and title bar caption; and that returns a result. | |
| 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
| Name | Description | |
|---|---|---|
| HelpDialogResult | ||
| TimerFormat | Recomended format for displaying timer. |
Properties
| Name | Description | |
|---|---|---|
| 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 | (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
| Name | Description | |
|---|---|---|
| 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 |