How to take a screenshot in C#

The subsequent code snippet can be used to take screenshots in C#.Net. The screenshots, you capture with the following snippet, equal to the screenshots you take by pressing the print-key on your keyboard. (Certainly aside from the fact that the screenshot won’t be in your clipboard, but you will get a bitmap object, which can be used to manipulte in anyway you like in C#.)
Because the the source code is very short, I’ll let it speak for itself.

private Bitmap Screenshot()
//Create a bitmap with the same dimensions like the screen
Bitmap screen = new Bitmap(SystemInformation.VirtualScreen.Width,

//Create graphics object from bitmap