Developing a new support set

The first step in creating support for a custom control is to create a new Custom Server project. This project will create support for the TrackBar control.

To create a new Custom Server project:

  1. Open Microsoft Visual Studio.

  2. Open the New Project dialog box.

  3. Locate and open the Visual C# > Windows CustomServer template.

    • In the Name box, specify the project name MyCustServer.

    • Accept the rest of the default settings.

  4. Click OK. The Custom Server Settings wizard opens.

  5. In the Application Settings page, specify the following settings:

    • In the Server class name box, enter TrackBarSrv.

    • Select the Customize Record process check box.

    • Select the Customize Run process check box.

    • Accept the rest of the default settings.

  6. Click Next. The XML Configuration Settings page opens.

  7. In the XML Configuration Settings page, specify the following settings:

    • Make sure the Auto-generate the XML configuration segment check box is selected.

    • In the Customized Control type box, enter System.Windows.Forms.TrackBar.

    • Accept the rest of the default settings.

  8. Click Finish. In the Class View window, you can see that the wizard created a TrackBarSrv class derived from the CustomServerBase class and ITrackBarSrvReplay interface.

To begin implementing the Custom Server, proceed to the next step: Implementing test record logic.