title: C# Double Buffered not painting
body: <p>I simulate map navigation and draw generated part of the map on a panel. Since image is flickering I have to use double buffering.</p>
  
  <p>Here's my Panel code:</p>
  
  <pre><code>public class MapPanel : System.Windows.Forms.Panel
      {
          public MapPanel()
          {
              DoubleBuffered = true;
              ResizeRedraw = true;
          }
      }
  </code></pre>
  
  <p>And I have the following method:</p>
  
  <pre><code>public void panelMap_Paint(object sender, PaintEventArgs e)
          {
              using (Graphics g = e.Graphics)
              {
                  g.DrawImage(mapController.GetCurrentMap(), 0, 0, panelMap.Width, panelMap.Height);
              }
          }
  </code></pre>
  
  <p>I'm not calling this method. I have the following code in .Designer.cs:</p>
  
  <pre><code>this.panelMap.Paint += new PaintEventHandler(this.panelMap_Paint);
  </code></pre>
  
  <p>And call Invalidate() in MouseMove. I'm sure that this event occurs, I've checked it. Everything seems to be correct.</p>
  
  <p>And then the image is not drawing. I mean, the panel is empty and seems to be transparent or colored in default control color. However, if I turn double buffering off, the image is properly drawn, but, obviously, it's flickering. Could you help me?</p>