0

I just want to capture the screen in .Net Framework 2.0 with Smart Device application.

Not working:

Graphics g = Graphics.FromImage(screen);
g.CopyFromScreen(SystemInformation.VirtualScreen.X, 
                 SystemInformation.VirtualScreen.Y,0, 0, screen.Size);

and

this.DrawToBitmap(bmp, new Rectangle(0, 0, bmp.Width, bmp.Height));

the above functions are not working.

Jimi
  • 29,621
  • 8
  • 43
  • 61
Sudhir
  • 9
  • 1
  • 8
  • possible duplicate of [Capture screenshot of active window](https://stackoverflow.com/questions/1163761/capture-screenshot-of-active-window) – Baskar John Nov 12 '18 at 13:47
  • With `.Net Framework 2.0` do you actually mean the full (ancient) Framework or `.Net Standard 2.0`? Or `.Net Core 2.0`? In `Graphics g = Graphics.FromImage(screen);`, what is `screen`? Are you sure it can work well with `VirtualScreen.Location`? – Jimi Nov 12 '18 at 15:33
  • .Net Framework 2.0 with Smart Device Windows CE 5.0 Project. – Sudhir Nov 13 '18 at 05:36

0 Answers0