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

Displays modal message box with given prompt, title and buttons

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

Syntax

C#
public static MessageBox ModalEx_PTB(
	string Prompt,
	string Title,
	params MessageBox..::.MessageBoxButton[] Buttons
)
Visual Basic (Declaration)
Public Shared Function ModalEx_PTB ( _
	Prompt As String, _
	Title As String, _
	ParamArray Buttons As MessageBox..::.MessageBoxButton() _
) As MessageBox
Visual C++
public:
static MessageBox^ ModalEx_PTB(
	String^ Prompt, 
	String^ Title, 
	... array<MessageBox..::.MessageBoxButton^>^ Buttons
)
J#
public static MessageBox ModalEx_PTB(
	String Prompt,
	String Title,
	MessageBox..::.MessageBoxButton[] Buttons
)
JScript
public static function ModalEx_PTB(
	Prompt : String, 
	Title : String, 
	... Buttons : MessageBox..::.MessageBoxButton[]
) : MessageBox

Parameters

Prompt
Type: System..::.String
Prompt to be shown
Title
Type: System..::.String
Message box title
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