Method BeginPaint
BeginPaint(Graphics)
When implemented by a class, prepares the IPainter to paint. Associates new device context from given Graphics object to IPainter and preserves IPainter properties.
EndPaint()
void BeginPaint(Graphics graphics)
Parameters
graphicsGraphicsThe Graphics object to draw on.