title: C# Graphics.FillRectangle not working at all
body: <p>The code below won't work no matter how many times I press the button, it's really annoying me</p>
  
  <pre><code>private void button2_Click(object sender, EventArgs e)
          {
          Bitmap screen = new Bitmap(600, 800);
          Graphics gfx = Graphics.FromImage(screen);
          SolidBrush brush = new SolidBrush(Color.FromArgb(255, 255, 0));
          gfx.FillRectangle(brush, 0, 0, 600, 800);
          gfx.Dispose();
          brush.Dispose();
          screen.Dispose();
          }
  </code></pre>