I want to take a screenshot of Nox Player or MEmu Player. I tried everything in this topic: Get a screenshot of a specific application but still stuck.
In followed the best answer (that with green check symbol), I can take a screenshot but as has a problem: - The target window must be in foreground and not covered by anything.
I tried the next solution (in next comment) using PrintWindow win32. Here is my code when I click a button:
var proc = Process.GetProcessesByName("Nox")[0];
Bitmap bmp = PrintWindow(this.Handle);
pictureBox.Image = bmp;
But the RECT always return 0 for all variable Left, Top, Right, Bottom.