title: Capture WebBrowser Image
body: <p>This code return a white image after saving with saveFileDialog</p>
  
  <pre><code>private void salvaUnImmagineToolStripMenuItem_Click(object sender, EventArgs e)
              {                    
                  if (saveFileDialog1.ShowDialog() == DialogResult.OK)
                  {
                      SaveAsBitmap(webBrowser1, saveFileDialog1.FileName);
                  }                
              }
  
              public void SaveAsBitmap(Control control, string fileName)
              {
                  //getthe instance of the graphics from the control
                  Graphics g = control.CreateGraphics();
  
                  //new bitmap object to save the image
                  Bitmap bmp = new Bitmap(control.Width, control.Height);
  
                  //Drawing control to the bitmap
                  control.DrawToBitmap(bmp, new Rectangle(0, 0, control.Width, control.Height));
  
                  bmp.Save(fileName);
                  bmp.Dispose();
              }
  </code></pre>
  
  <p>How I can capture a image of web browser?</p>