[This is preliminary documentation and is subject to change.]
Displays modal message box with information about Exception
Namespace: Tools.WindowsT.IndependentTAssembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public static DialogResult Error_XPTIBWO( Exception ex, string Prompt, string Title, MessageBox..::..MessageBoxIcons Icon, MessageBox..::..MessageBoxButton..::..Buttons Buttons, Object Owner, MessageBox..::..MessageBoxOptions Options ) |
| Visual Basic |
|---|
Public Shared Function Error_XPTIBWO ( _ ex As Exception, _ Prompt As String, _ Title As String, _ Icon As MessageBox..::..MessageBoxIcons, _ Buttons As MessageBox..::..MessageBoxButton..::..Buttons, _ Owner As Object, _ Options As MessageBox..::..MessageBoxOptions _ ) As DialogResult |
| Visual C++ |
|---|
public: static DialogResult Error_XPTIBWO( Exception^ ex, String^ Prompt, String^ Title, MessageBox..::..MessageBoxIcons Icon, MessageBox..::..MessageBoxButton..::..Buttons Buttons, Object^ Owner, MessageBox..::..MessageBoxOptions Options ) |
| F# |
|---|
static member Error_XPTIBWO : ex:Exception * Prompt:string * Title:string * Icon:MessageBox..::..MessageBoxIcons * Buttons:MessageBox..::..MessageBoxButton..::..Buttons * Owner:Object * Options:MessageBox..::..MessageBoxOptions -> DialogResult |
| JScript |
|---|
public static function Error_XPTIBWO( ex : Exception, Prompt : String, Title : String, Icon : MessageBox..::..MessageBoxIcons, Buttons : MessageBox..::..MessageBoxButton..::..Buttons, Owner : Object, Options : MessageBox..::..MessageBoxOptions ) : DialogResult |
Parameters
- ex
- Type: System..::..Exception
Exception to show Message of
- Prompt
- Type: System..::..String
Prompt to be shown
- Title
- Type: System..::..String
Message box title
- Icon
- Type: Tools.WindowsT.IndependentT..::..MessageBox..::..MessageBoxIcons
Defines one of predefined icons to show to user. Actual image is obtained via GetIconDelegate
- Buttons
- Type: Tools.WindowsT.IndependentT..::..MessageBox..::..MessageBoxButton..::..Buttons
Defines which buttons will be available to user
- Owner
- Type: System..::..Object
The window message box window will be modal to (can be null). Typical values are IWin32Window and Window If implementation does not recognize type of owner it ignores it.
- Options
- Type: Tools.WindowsT.IndependentT..::..MessageBox..::..MessageBoxOptions
Dialog options
Return Value
Indicates button clicked by user
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | ex is null |
See Also
Version History
1.5.3
- (Beta) Type of parameter owner changed from IWin32Window to Object to support both - IWin32Window and Window.
- (Beta) Fix: Buttons goes to prompt rather than forming buttons. Only OK button si always show.
- Fix: Bug in ModalEx_PTEIOWMHS(String, String, IEnumerable<(Of <<'(Object>)>>), Image, MessageBox..::..MessageBoxOptions, Object, Int32, EventHandler<(Of <<'(MessageBox, EventArgs>)>>), Sound) (which this method depends on) caused that messagebox was rendered without buttons.
- Message from inner exceptions is shown as well
- ArgumentNullException is thrown when ex is null (instead of NullReferenceException)