theScien
Member
[RESOLVED] Disable screensaver in VB.NET
Hi guys, just stumbled across a little annoying problem, I have developed a little screensaver, that I also run by calling the *.scr file directly when I want to leave my workstation to kind of lock it, however when the screen saver kicks in it's designated time and I ended up with two applications running, I solved that by checking and end the new instance, however, say the screen saver is set to go in every 5 mins of inactivity, when I call the *.scr file and leave, then the screensaver will come on in 5 mins, it determines an instance is already running and ends, but it does that every 5 mins, and everytime it does it the CPU spikes (not good if I'm rendering an animation) so the best is to disable the screen saver everytime I call the file directly.
Certain applications do this, in particular video players.
Any ideas how to disable the screensaver from kicking when my application is running, then enabling it again on my app exit? (VB.NET prefered)
Thanks.
Hi guys, just stumbled across a little annoying problem, I have developed a little screensaver, that I also run by calling the *.scr file directly when I want to leave my workstation to kind of lock it, however when the screen saver kicks in it's designated time and I ended up with two applications running, I solved that by checking and end the new instance, however, say the screen saver is set to go in every 5 mins of inactivity, when I call the *.scr file and leave, then the screensaver will come on in 5 mins, it determines an instance is already running and ends, but it does that every 5 mins, and everytime it does it the CPU spikes (not good if I'm rendering an animation) so the best is to disable the screen saver everytime I call the file directly.
Certain applications do this, in particular video players.
Any ideas how to disable the screensaver from kicking when my application is running, then enabling it again on my app exit? (VB.NET prefered)
Thanks.
Last edited: