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:
Open Microsoft Visual Studio.
Open the New Project dialog box.
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.
Click OK. The Custom Server Settings wizard opens.

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.
Click Next. The XML Configuration Settings page opens.

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.
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.


