SetResult Method (DialogResult)
Sets the DialogResult of the associated MessageBox.
Type: MessageBoxEventArgs
Namespace: XJTAG.Integration.XJRunner
Syntax
public void SetResult(DialogResult result)
Parameters
- result
Type: System.Windows.Forms.DialogResult
The result to set.
Exceptions
- System.ArgumentException
The specified result is not one of the possible message box options.
Remarks
Calling this method causes the messagebox to close and return the provided result.
You can call SetResult synchronously inside the event handler, or preserve the supplied MessageBoxEventArgs reference and call SetResult later. The message box will close when a user selects one of its buttons, or when SetResult is called, whichever happens first.
XJTAG v4.2.5
