Hello,
I tried it with your code like that:
System.Drawing.Pen myPen = null;
myPen.StartCap = System.Drawing.Drawing2D.LineCap.ArrowAnchor;
myPen.EndCap = System.Drawing.Drawing2D.LineCap.Flat;
myPen.Width = 2;
System.Drawing.Graphics formGraphics = this.CreateGraphics();
formGraphics.DrawLine(myPen, a, b, c, d);
myPen.Dispose();
formGraphics.Dispose();
But I always get a NullReferenceException. Does anybody know what went wrong
here?
regards
mat