title: Capturing virtual screen (all monitors)
body: <p>I am trying to get a screenshot of the whole virtual screen. This means, an image of not just the primary screen, but every screen connected to the computer.</p>
  
  <p>Is there a way to do that? I tried using this, but it didn't work:</p>
  
  <pre><code>Bitmap b = new Bitmap(SystemInformation.VirtualScreen.Width, SystemInformation.VirtualScreen.Height);
  Graphics g = Graphics.FromImage(b);
  this.Size = new Size(SystemInformation.VirtualScreen.Width, SystemInformation.VirtualScreen.Height);
  g.CopyFromScreen(0, 0, 0, 0, b.Size);
  </code></pre>