Building a TestStand UI with Native Controls - .NET

TestStand 2017 Help

Edition Date: November 2017

Part Number: 370052W-01

»View Product Info

Download Help (Windows Only)
NI TestStand 2014 Help
NI TestStand 2014 SP1 Help
TestStand 2016 Help
TestStand 2016 SP1 Help
TestStand 2017 Help


This example shows how to create a TestStand user interface using only .NET controls. The UI uses the TestStand UI manager controls to manage the application.

Example File Location

Open Example in Visual Studio

<TestStand Public>\Examples\Modifying User Interfaces\Building a TestStand UI with Native Controls\dotNET\TestStand UI with Native Controls.sln

Highlighted Features

TestStand User Interface API

Major API


You must have Visual Studio installed to execute this example.

How to Use This Example

Complete the following steps to review the code in this example:

  1. In TestStand UI with Native Controls.sln, right-click MainForm.cs.
  2. Select the ApplicationManager control, then click Events in the properties pane. Notice that callbacks have been specified for certain TestStand events. Double-click a callback to view the code.
    Note Note  The user interface used control callbacks to implement functionality for controls, in the same way as a typical .NET UI application. These callbacks use the axApplicationMgr.GetCommand and Command.Execute methods to implement TestStand-specific functionality.

Complete the following steps to run the example:

  1. Click Start Debugging to start the user interface.
  2. Select Open Sequence File to open a sequence file, then select Execute to run the file using the first entry point in the current process model.
  3. Once the execution completes, the report file path is added to the table control. This functionality is implemented in the axApplicationMgr_EndExecution event callback.


Not Helpful