The example demonstrates how to manipulate with orientation of a TrackBar control.
Download the file by clicking the link above.