[This is preliminary documentation and is subject to change.]

Displays modal message box with given prompt, title, icon, owner, timer, show ahndler and buttons

Namespace: Tools.WindowsT.IndependentT
Assembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public static MessageBox ModalEx_PTIWMHB(
	string Prompt,
	string Title,
	Image Icon,
	Object Owner,
	int Timer,
	EventHandler<MessageBox, EventArgs> ShownHandler,
	params MessageBox..::..MessageBoxButton[] Buttons
)
Visual Basic
Public Shared Function ModalEx_PTIWMHB ( _
	Prompt As String, _
	Title As String, _
	Icon As Image, _
	Owner As Object, _
	Timer As Integer, _
	ShownHandler As EventHandler(Of MessageBox, EventArgs), _
	ParamArray Buttons As MessageBox..::..MessageBoxButton() _
) As MessageBox
Visual C++
public:
static MessageBox^ ModalEx_PTIWMHB(
	String^ Prompt, 
	String^ Title, 
	Image^ Icon, 
	Object^ Owner, 
	int Timer, 
	EventHandler<MessageBox^, EventArgs^>^ ShownHandler, 
	... array<MessageBox..::..MessageBoxButton^>^ Buttons
)
F#
static member ModalEx_PTIWMHB : 
        Prompt:string * 
        Title:string * 
        Icon:Image * 
        Owner:Object * 
        Timer:int * 
        ShownHandler:EventHandler<MessageBox, EventArgs> * 
        Buttons:MessageBox..::..MessageBoxButton[] -> MessageBox 
JScript
public static function ModalEx_PTIWMHB(
	Prompt : String, 
	Title : String, 
	Icon : Image, 
	Owner : Object, 
	Timer : int, 
	ShownHandler : EventHandler<MessageBox, EventArgs>, 
	... Buttons : MessageBox..::..MessageBoxButton[]
) : 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.
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
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

Instance of message box. The instance is alredy closed when this function returns.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionButtons is null

See Also

Collapse/expand Version History

1.5.3