title: Saving Panel as JPEG, only saving visible areas c#
body: <p>I'm trying to save, and then print a panel in c#. My only problem is that it only saves the visible areas and when I scroll down it prints that.</p>
  
  <pre><code> Bitmap bmp = new Bitmap(this.panel.Width, this.panel.Height);
  
   this.panel.DrawToBitmap(bmp, new Rectangle(0, 0, this.panel.Width, this.panel.Height));
  
   bmp.Save("c:\\panel.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
  </code></pre>