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

Shows default (GetDefault()()()()) modal message box initialized with given instance of MessageBox

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

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public static DialogResult ShowTemplate(
	MessageBox InitializeFrom,
	Object Owner,
	string Prompt,
	string Title
)
Visual Basic
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)> _
Public Shared Function ShowTemplate ( _
	InitializeFrom As MessageBox, _
	Owner As Object, _
	Prompt As String, _
	Title As String _
) As DialogResult
Visual C++
[EditorBrowsableAttribute(EditorBrowsableState::Advanced)]
public:
static DialogResult ShowTemplate(
	MessageBox^ InitializeFrom, 
	Object^ Owner, 
	String^ Prompt, 
	String^ Title
)
F#
[<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>]
static member ShowTemplate : 
        InitializeFrom:MessageBox * 
        Owner:Object * 
        Prompt:string * 
        Title:string -> DialogResult 
JScript
public static function ShowTemplate(
	InitializeFrom : MessageBox, 
	Owner : Object, 
	Prompt : String, 
	Title : String
) : DialogResult

Parameters

InitializeFrom
Type: Tools.WindowsT.IndependentT..::..MessageBox
Instance to initialize default message box with
Owner
Type: System..::..Object
Owner window (can be null). Typical values are IWin32Window and Window If implementation does not recognize type of owner it ignores it.
Prompt
Type: System..::..String
If not null sets dfferent prompt then InitializeFrom
Title
Type: System..::..String
Is not null sets diffetent title then InitializeFrom

Return Value

Message box result

Remarks

For same reason as InitializeFrom(MessageBox), do not use InitializeFrom to clonning live message boxes

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionInitializeFrom is null
System.Reflection..::..TargetInvocationExceptionTher was an error obtainin default implementation instance via GetDefault()()()(). See InnerException for details.

See Also

Collapse/expand Version History

1.5.3