Hi

I hope this is not too complicated for a single question.

I want to create a graph with specific points that the user can drag up or down, with the mouse, within a rectangle. Just to set the context, the graph will determine the number of units available over 12 periods. Each moveable point is a circle shape. I have worked out how to get the shape to move up and down but I need help with:

How do I ensure that it only moves within the top and bottom boundaries of the rectangle?

Is it possible to have the line graph adjust in real time so that each line begins and ends in the centre of a circle?

I went over to the dark side for a while and managed to do this with 'Livecode', but I'm struggling with how to do it in VB.net.

The attached picture shows what the Livecode version of the graph looks like. Basically, the user can drag the circles and the lines of the graph move simultaneously.

Regards

Terry

Interactive-Graph.jpg