[This is preliminary documentation and is subject to change.]
Displays modal message box with given prompt, title, options, custom icon and custom buttons
Namespace: Tools.WindowsT.IndependentTAssembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public static DialogResult Modal_PTOIB( string Prompt, string Title, MessageBox..::..MessageBoxOptions Options, Image Icon, params MessageBox..::..MessageBoxButton[] Buttons ) |
| Visual Basic |
|---|
Public Shared Function Modal_PTOIB ( _ Prompt As String, _ Title As String, _ Options As MessageBox..::..MessageBoxOptions, _ Icon As Image, _ ParamArray Buttons As MessageBox..::..MessageBoxButton() _ ) As DialogResult |
| Visual C++ |
|---|
public: static DialogResult Modal_PTOIB( String^ Prompt, String^ Title, MessageBox..::..MessageBoxOptions Options, Image^ Icon, ... array<MessageBox..::..MessageBoxButton^>^ Buttons ) |
| F# |
|---|
static member Modal_PTOIB : Prompt:string * Title:string * Options:MessageBox..::..MessageBoxOptions * Icon:Image * Buttons:MessageBox..::..MessageBoxButton[] -> DialogResult |
| JScript |
|---|
public static function Modal_PTOIB( Prompt : String, Title : String, Options : MessageBox..::..MessageBoxOptions, Icon : Image, ... Buttons : MessageBox..::..MessageBoxButton[] ) : DialogResult |
Parameters
- Prompt
- Type: System..::..String
Prompt to be shown
- Title
- Type: System..::..String
Message box title
- Options
- Type: Tools.WindowsT.IndependentT..::..MessageBox..::..MessageBoxOptions
Options that controls messagebox layout and behaviour
- Icon
- Type: System.Drawing..::..Image
Icon that will be shown on messagebox. Default preffered size is 64×64 px (can be changed in derived class). Icon can be null.
- Buttons
- Type: array<Tools.WindowsT.IndependentT..::..MessageBox..::..MessageBoxButton>[]()[][]
Custom buttons. Each button should have different Result, so you can distinguish which button was clicked.
Return Value
Indicates button clicked by user
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | Buttons is null |