[This is preliminary documentation and is subject to change.]
Displays modal messagebox 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 DialogResult ModalSync( Control Control, Object Owner ) |
| Visual Basic |
|---|
Public Function ModalSync ( _ Control As Control, _ Owner As Object _ ) As DialogResult |
| Visual C++ |
|---|
public: DialogResult ModalSync( Control^ Control, Object^ Owner ) |
| F# |
|---|
member ModalSync : Control:Control * Owner:Object -> DialogResult |
| JScript |
|---|
public function ModalSync( Control : Control, Owner : Object ) : DialogResult |
Parameters
- Control
- Type: System.Windows.Forms..::..Control
Control to diplay dialog in thread control was created by
- Owner
- Type: System..::..Object
Optional owner of dialog (the window dialog 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 diloag identifiing pressed button
Remarks
This function can be used to display dialogs from background worker thread
See Also
Version History
1.5.3
- (Beta) Type of parameter owner changed from IWin32Window to Object to support both - IWin32Window and Window.