1
Reply

How to do this?

Ajnavi Rani

Ajnavi Rani

Mar 13 2006 2:25 PM
3.2k
Hi,

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


Answers (1)