I ahve two arraylist, xpoint and ypoint.
with these two arraylist i have to darw lines on the form,
e.Graphics.DrawLine(penYellow, xpoint, ypoint); when i do this i get error
Error 2 Argument '2': cannot convert from 'System.Collections.ArrayList' to 'System.Drawing.PointF' and
Error 1 The best overloaded method match for 'System.Drawing.Graphics.DrawLine(System.Drawing.Pen, System.Drawing.PointF, System.Drawing.PointF)' has some invalid arguments .
How i have to do this correction. please help me.
Thanks in Advance.
Ajnavi
Craig MurphyPosted Mar 15, 2006, 4:10 AM
GraphicsPath path = new GraphicsPath(); Pen penYellow = new Pen(Color.Yellow, 2); Point[] points = { new Point(10,10), new Point(50,75), new Point(200,200)};
path.AddLines(points);
e.Graphics.DrawPath(penYellow, path);
HTH