Expand|Select|Wrap|Line Numbers
- public Form1()
- {
- InitializeComponent();
- this.DoubleBuffered = true;
- }
- protected override void OnPaint(PaintEventArgs e)
- {
- e.Graphics.FillRectangle(new SolidBrush(BackColor), 0, 0, 50, 50);
- base.OnPaint(e);
- }
thank you!
If the image below is absent, please see this