Some of the controls are available as libraries.
The TrackBar is such a control.
You need to add the TrackBar library using Tools - Components.
Then add the control Tools - Add Object - TrackBar
Attached is a small example.
form1.Text = bar.Value