The Yellow Blob that codes
C# Custom Screensaver capturing desktop returns solid color
I am working on creating a screen saver in c# dotnet 8.0. I'm currently trying to do something similar to how the bubbles screen saver screenshots your desktop and uses that as a background. Everything works fine, preview mode works, and running the screensaver as an exe works too. The issue occurs when the screen saver actually runs after idling. Windows shows a solid color before running the screensaver so screenshotting just gives that.
Program class
ScreenSaverForm class
I tried a tranparent window but the solid color just appears under it. If anyone has any insight as to how the bubbles screensaver accomplishes it or any other alternative way to screenshot under the solid color that would be appreciated!
8 replies