I am developing a .NET winforms application which has to capture a snapshot.
For this I have used System.Drawing.Graphics.CopyFromScreen
method which works fine but when I tries to capture screenshot of particular application (Oracle EBS) then it captures blank.
It captures all images well but only when Oracle ERP is tried to be captured it returns blank white.
graphics = Graphics.FromImage(CaptureBMP);
graphics.CopyFromScreen(this.Location.X, this.Location.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
CaptureBMP.Save(@"C:\Temp\printscreen.jpg", ImageFormat.Jpeg);
It should capture Oracle ERP also in the picture