You can simply copy this code to the source file of the form. (You also need to import additional materials using System.Windows.Forms.Design;
).
You can then see TraceBarItem
in the designer when you try to add an item to your toolbar.
To configure TraceBar, add it to the constructor of the class that you placed:
TrackBar tb = (TrackBar)this.Control;
You can set all the properties of the trackbar using this tb
object.
source share