Vb trackbar/slider - value conversion?

Associate
Joined
23 Oct 2004
Posts
2,441
Location
Brighton
Howdy,

I have a joystick input that I want to control a trackbar or slider.

The joystick goes from -100 to 100 with 0 as it's center

-100____________0_____________100

My Trackbar goes from 0 to 200 with 100 as it's center.

0______________100____________200

So I need a conversion to make the values submitted from the joystick apply to the trackbar.

Anyone got any ideas for a simple solution?

Ta.
 
Back
Top Bottom