c# fillrectangle MVS 2012
<p>I am beginner in c# programming and want to draw a rectangle in a windowsformapplication.
I use Microsoft Visual Studio 2012 and got this example code:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication2
{
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();

    }
    private void FillRectangleRectangle(PaintEventArgs e)
    {

        // Create solid brush.
        SolidBrush blueBrush = new SolidBrush(Color.Blue);

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

        // Fill rectangle to screen.
        e.Graphics.FillRectangle(blueBrush, rect);
    }




    }
  }
</code></pre>

<p>but it doesnt word, can anyone help me?</p>
