This is a discussion on How to take screenshots in C#? within the C# Programming forums, part of the Software Development category; How to take screenshots in C#?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| If you like to take screen shots in windows forms in dotnet,use Screen class contains the clipped area .Use the below code to copy the screen shots foreach (Screen screen in Screen.AllScreens) { Bitmap bmp = new Bitmap(screen.Bounds.Width, screen.Bounds.Height); Graphics g = Graphics.FromImage(bmp); g.CopyFromScreen(0, 0, 0, 0, bmp.Size); g.Dispose(); //Save the images here, or display them in picture boxes, etc. } |
![]() |
| Thread Tools | |
| Display Modes | |
| |