private void Draw(System.Drawing.Color color, System.Drawing.Rectangle rect) { using (var myBrush = new System.Drawing.SolidBrush(color)) { using (var formGraphics = WinPanel.CreateGraphics()) { formGraphics.Clear(System.Drawing.Color.White); formGraphics.FillEllipse(myBrush, rect); } } }