private import dfl.all private import graphicsbuffer; class MyForm: DoubleBufferedForm { protected override void onBufferPaint(PaintEventArgs ea) { super.onBufferPaint(ea); // Fills the background color. // Other painting and drawing to ea.graphics... } } void main() { Application.run(new MyForm()); }