Administrator

Administrator

  • Tech Writer
  • 2.2k
  • 1.5m

what is ControlPaint

Feb 26 2003 2:58 AM
can i know what is contol paint cause i have implement the endcap and startcap but i use ContolPaint to draw it rather than use graphics so how can i solve it. this is my code use to draw line ControlPaint.DrawReversibleLine(startPoint, endPoint, bgColor); but now how can i add my pen inside the line so its appear with an arrow using Control paint if i use DrawLine my form appear alot of line rather than onli one straight line maybe its is because my mousemove prob. ? Pen p = new Pen(bgColor,5); p.StartCap = System.Drawing.Drawing2D.LineCap.Flat; p.EndCap = System.Drawing.Drawing2D.LineCap.ArrowAnchor; m_GraphicsToDrawOn.DrawLine(p,startPoint.X,startPoint.Y,endPoint.X,endPoint.Y);