[This is preliminary documentation and is subject to change.]
Displays modal messagebox with given prompt, title, items and optionally icon, options, owner, timer, show handler and sound
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_PTEIOWMHS( string Prompt, string Title, IEnumerable<Object> Items, Image Icon, MessageBox..::..MessageBoxOptions Options, Object Owner, int Timer, EventHandler<MessageBox, EventArgs> ShownHandler, Sound Sound ) |
| Visual Basic |
|---|
Public Shared Function ModalEx_PTEIOWMHS ( _ Prompt As String, _ Title As String, _ Items As IEnumerable(Of Object), _ Icon As Image, _ Options As MessageBox..::..MessageBoxOptions, _ Owner As Object, _ Timer As Integer, _ ShownHandler As EventHandler(Of MessageBox, EventArgs), _ Sound As Sound _ ) As MessageBox |
| Visual C++ |
|---|
public: static MessageBox^ ModalEx_PTEIOWMHS( String^ Prompt, String^ Title, IEnumerable<Object^>^ Items, Image^ Icon, MessageBox..::..MessageBoxOptions Options, Object^ Owner, int Timer, EventHandler<MessageBox^, EventArgs^>^ ShownHandler, Sound^ Sound ) |
| F# |
|---|
static member ModalEx_PTEIOWMHS : Prompt:string * Title:string * Items:IEnumerable<Object> * Icon:Image * Options:MessageBox..::..MessageBoxOptions * Owner:Object * Timer:int * ShownHandler:EventHandler<MessageBox, EventArgs> * Sound:Sound -> MessageBox |
| JScript |
|---|
public static function ModalEx_PTEIOWMHS( Prompt : String, Title : String, Items : IEnumerable<Object>, Icon : Image, Options : MessageBox..::..MessageBoxOptions, Owner : Object, Timer : int, ShownHandler : EventHandler<MessageBox, EventArgs>, Sound : Sound ) : MessageBox |
Parameters
- Prompt
- Type: System..::..String
Prompt to be shown
- Title
- Type: System..::..String
Message box title
- Items
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'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.
- 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.
- Options
- Type: Tools.WindowsT.IndependentT..::..MessageBox..::..MessageBoxOptions
Options that controls messagebox layout and behaviour
- 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.
- Timer
- Type: System..::..Int32
Time (in seconds) after which the message box will close automatically
- ShownHandler
- Type: Tools..::..EventHandler<(Of <(<'MessageBox, EventArgs>)>)>
Delegate that will handle the Shown event of message box
- Sound
- Type: Tools.MediaT..::..Sound
Sound to be played whne message box is shown.
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.
- (Beta) Fixed: Values in Items are not processed. This bug affected may methods depending on this one.