i want to draw a series of lines and move them but i want to connect the end point of line 1 to the start point of line 2 ... when i move line 1 or 2 ... the other line will affect by changing its point
i use the example here Graphic - DrawLine - draw line and move it
and change a little bit in code to make the draw lines
void LineMover_Paint(object sender, PaintEventArgs e)
{
e.Graphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.High;
e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
var pen = new Pen(Color.Black, 2);
e.Graphics.DrawLine(pen, Lines[0].StartPoint, Lines[0].EndPoint);
e.Graphics.DrawLine(pen, Lines[0].EndPoint, Lines[2].StartPoint);
e.Graphics.DrawLine(pen, Lines[2].StartPoint, Lines[2].EndPoint);
}
but when i move them i do not have what i want ... any help ??