DisplayInputBox Event

Occurs when a call to display an input box is made from the XJEase code. This event is fired from an arbitrary thread.

Type: Runner

Namespace: XJTAG.Integration.XJRunner

Syntax

public event EventHandler<InputBoxEventArgs> DisplayInputBox

Remarks

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.

This event is fired from the thread on which the test code is running. You therefore need to be careful about synchronising access to your data structures and, if your code accesses any user interface controls, you will need to use BeginInvoke to ensure that you access methods and properties from the appropriate thread.