override func OnPaint() code such as that below works as expected.
var pt = Point(50,50), newPoint = Point.Empty newPoint.X=100 newPoint.Y=200 var g = Graphics.FromHwnd(self.Handle), pn = Pen(Color.Blue, 4) g.DrawLine(pn, pt, newPoint) pn.Dispose() g.Dispose()
However, if placed within
private func MainForm_Paint() the expected line is not showing on the form. The analogous code when done in (Microsoft, not RemObjects) C# and placed in