SetResult Method

Sets the result of the input (i.e. the string which was input).

Type: InputBoxEventArgs

Namespace: XJTAG.Integration.XJRunner

Syntax

public void SetResult(string result)

Parameters

result

Type: string

The string to return as though it had been typed in.

Remarks

Calling this method sets the input text in the box to the specified text and causes the dialog to close if it is already open.

You can call SetResult synchronously inside the event handler, or preserve the supplied InputBoxEventArgs reference and call SetResult later. The input box will close when a user types input into it and dismisses it, or when SetResult is called, whichever happens first.