[This is preliminary documentation and is subject to change.]
Displays modal message box in sync with given control
Namespace: Tools.WindowsT.IndependentTAssembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public static DialogResult ModalSyncTemplate( Control Control, MessageBox Template, string Prompt, string Title, Object Owner ) |
| Visual Basic |
|---|
Public Shared Function ModalSyncTemplate ( _ Control As Control, _ Template As MessageBox, _ Prompt As String, _ Title As String, _ Owner As Object _ ) As DialogResult |
| Visual C++ |
|---|
public: static DialogResult ModalSyncTemplate( Control^ Control, MessageBox^ Template, String^ Prompt, String^ Title, Object^ Owner ) |
| F# |
|---|
static member ModalSyncTemplate : Control:Control * Template:MessageBox * Prompt:string * Title:string * Owner:Object -> DialogResult |
| JScript |
|---|
public static function ModalSyncTemplate( Control : Control, Template : MessageBox, Prompt : String, Title : String, Owner : Object ) : DialogResult |
Parameters
- Control
- Type: System.Windows.Forms..::..Control
Control to diplay dialog in thread control was created by
- Template
- Type: Tools.WindowsT.IndependentT..::..MessageBox
Instance to initialize default message box with
- Prompt
- Type: System..::..String
If not null specified different prompt of messagebox
- Title
- Type: System..::..String
If not null specifies different title of messagebox
- Owner
- Type: System..::..Object
Optional owner of messagebox - the window messagebox will be modal to. Typical values are IWin32Window and Window If implementation does not recognize type of owner it ignores it.
Return Value
Result of messagebox which identified button that was pressed
See Also
Version History
1.5.3
- (Beta) Type of parameter owner changed from IWin32Window to Object to support both - IWin32Window and Window.