title: How can I get a screenshot of control? DrawToBitmap not working
body: <p>I have a pictureBox that's being painted to externally via a dll call. </p>
  
  <pre><code>private void myPictureBox_Paint(object sender, PaintEventArgs e)
  {
       dllClass.RefreshEx(LWHANDLE, 0, 0);
  }
  </code></pre>
  
  <p>This is working and all, but I now need to get a screenshot of that picturebox, and it's not working.</p>
  
  <p>Here's what I've tried:</p>
  
  <pre><code>        Control ctrlToDraw = myPictureBox;
  
          System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(ctrlToDraw.Width, ctrlToDraw.Height);
          ctrlToDraw.DrawToBitmap(bmp, ctrlToDraw.ClientRectangle); 
  </code></pre>
  
  <p>I've also attempted to do it via Windows API, but it's resulting in exactly the same result as the above code: a blank (not null) image.</p>
  
  <p>Could anyone name some suggestions apart from taking a screenshot of the whole screen?</p>