Any Windows Forms control has a Paint event, you do not need to output your own class. But of course you can, it helps to split the code. Just select a base class that already provides most of what you need. Set the DoubleBuffered property to true in the constructor and override OnPaint.
source
share