How to draw a circle on form1 and fill it ?

sharon glipman 441 Reputation points
2021-10-11T14:05:27.5+00:00
private void Form1_Paint(object sender, PaintEventArgs e)
        {
            e.Graphics.DrawEllipse(new Pen(Color.Red, 1), 10, 10, 10, 10);
        }

If I change the Pen width from 1 to 3 or to 10 it will be more wide but not filled.

I want to draw like a point filled so I can change it's size but keep it filled not empty circle.

Developer technologies | Windows Forms
Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 90,686 Reputation points
    2021-10-11T14:10:50.407+00:00

    Use FillEllipse :

     e.Graphics.FillEllipse(new SolidBrush(System.Drawing.Color.Red), 10, 10, 10, 10);
    
    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.