Question Locked

Movable straight line on an X-Y plot in C#

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How do I make a movable straight line on an X-Y plot and reporting the slope and intercept of the line in C#.

2 replies

by tony hopkinson

you can draw a line on near any control. PictureBox seems a likely candidate.

look up Drawline. as for worikng out the slope and intercept, you drew the line, so that's just solving y = mx + c, for the end points.

This discussion is closed to new replies.