Hi
Dialbo,
I have doubt how to pass window handle to this fuction
return CaptureWindow(User32.GetWindowDC(window handle )); useing you code
public Image CaptureScreen()
{
// return CaptureWindow(User32.GetDesktopWindow());
return CaptureWindow(User32.GetWindowDC(window handle ));
}
[DllImport("user32.dll")]
public static extern IntPtr GetWindowDC(IntPtr hWnd);