|20 May 2010||#1|
How to disable sleep mode programmatically
I have a vb.net application that runs for several hours. The problem I am having is that Windows 7 goes to sleep while my application is running. I know I can manually disable the sleep mode, but I am hoping there is a way I can enable/disable the sleep mode from within my vb.net application. That way I can disable the sleep mode when my program starts and I can enable it again when my program finishes. Is there a way to do this? Is there another way to prevent Windows 7 from going to sleep while my program is still running? Is there a DontGoToSleepBecauseMyProgramIsStillRunning command that I can execute every few minutes to prevent Windows 7 from going to sleep while my program is running?
|My System Specs|
|Similar help and support threads for2: How to disable sleep mode programmatically|
|How to programmatically change COM port FriendlyName||Installation & Setup|
|Disable Hybrid Sleep?||General Discussion|
|How do i use hibernate mode without going into sleep mode first||Software|
|Mute the audio mixer application programmatically||Sound & Audio|
|Sleep : Disable ... New Tutorial||Chillout Room|
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
All times are GMT -5. The time now is 11:25 AM.