[This is preliminary documentation and is subject to change.]
Displays modal message box with given prompt, title, icon, owner and items
Namespace: Tools.WindowsT.IndependentTAssembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public static MessageBox ModalEx_PTIWS( string Prompt, string Title, Image Icon, Object Owner, params Object[] Items ) |
| Visual Basic |
|---|
Public Shared Function ModalEx_PTIWS ( _ Prompt As String, _ Title As String, _ Icon As Image, _ Owner As Object, _ ParamArray Items As Object() _ ) As MessageBox |
| Visual C++ |
|---|
public: static MessageBox^ ModalEx_PTIWS( String^ Prompt, String^ Title, Image^ Icon, Object^ Owner, ... array<Object^>^ Items ) |
| F# |
|---|
static member ModalEx_PTIWS : Prompt:string * Title:string * Icon:Image * Owner:Object * Items:Object[] -> MessageBox |
| JScript |
|---|
public static function ModalEx_PTIWS( Prompt : String, Title : String, Icon : Image, Owner : Object, ... Items : Object[] ) : MessageBox |
Parameters
- Prompt
- Type: System..::..String
Prompt to be shown
- Title
- Type: System..::..String
Message box title
- 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.
- 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.
- Items
- Type: array<System..::..Object>[]()[][]
Items to be shown in message box. Place items of type MessageBox..::..MessageBoxButton, MessageBox..::..MessageBoxCheckBox, MessageBox..::..MessageBoxRadioButton and String here. String items are placed inside ComboBox. Items of other types are ignored.
Return Value
Instance of message box. The instance is alredy closed when this function returns.
See Also
Version History
1.5.3
- (Beta) Type of parameter owner changed from IWin32Window to Object to support both - IWin32Window and Window.
- 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 objects in Items were not processed.