How to draw a semicricle in C#?
<p>I found this code but I do not know how to use it in WinForms? My question is what do I need to do with this code step-by-step to draw a semicircle in a form.</p>

<pre><code>        private void DrawEllipseRectangle(PaintEventArgs e)
    {
        // Create pen.
        Pen blackPen = new Pen(Color.Black, 3);

        // Create rectangle for ellipse.
        Rectangle rect = new Rectangle(0, 0, 200, 100);

        // Draw ellipse to screen.
        e.Graphics.DrawEllipse(blackPen, rect);
    }
</code></pre>
