[This is preliminary documentation and is subject to change.]
Display modal message box with formated promt, given title, owner, buttons, icon
Namespace: Tools.WindowsT.IndependentTAssembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public static DialogResult ModalF_PTWBIa( string Prompt, string Title, Object Owner, MessageBox..::..MessageBoxButton..::..Buttons Buttons, Image Icon, params Object[] arguments ) |
| Visual Basic |
|---|
Public Shared Function ModalF_PTWBIa ( _ Prompt As String, _ Title As String, _ Owner As Object, _ Buttons As MessageBox..::..MessageBoxButton..::..Buttons, _ Icon As Image, _ ParamArray arguments As Object() _ ) As DialogResult |
| Visual C++ |
|---|
public: static DialogResult ModalF_PTWBIa( String^ Prompt, String^ Title, Object^ Owner, MessageBox..::..MessageBoxButton..::..Buttons Buttons, Image^ Icon, ... array<Object^>^ arguments ) |
| F# |
|---|
static member ModalF_PTWBIa : Prompt:string * Title:string * Owner:Object * Buttons:MessageBox..::..MessageBoxButton..::..Buttons * Icon:Image * arguments:Object[] -> DialogResult |
| JScript |
|---|
public static function ModalF_PTWBIa( Prompt : String, Title : String, Owner : Object, Buttons : MessageBox..::..MessageBoxButton..::..Buttons, Icon : Image, ... arguments : Object[] ) : DialogResult |
Parameters
- Prompt
- Type: System..::..String
Format string for promt to be shown to user
- Title
- Type: System..::..String
Message box title
- 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.
- Buttons
- Type: Tools.WindowsT.IndependentT..::..MessageBox..::..MessageBoxButton..::..Buttons
Defines which buttons will be available to user
- 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.
- arguments
- Type: array<System..::..Object>[]()[][]
Formating arguments for prompt. Arguments are placed in place of placeholders in Prompt using the String function.
Return Value
Indicates button clicked by user
See Also
Version History
1.5.3
- (Beta) Type of parameter owner changed from IWin32Window to Object to support both - IWin32Window and Window.