VBForums
>
Visual Basic
>
Visual Basic 6 and Earlier
> Standby Mode
PDA
Click to See Complete Forum and Search -->
:
Standby Mode
XinMan
Jan 20th, 2000, 10:10 PM
Do anyone know how to put a computer into standby mode through code?
TIA,
XinMan
raicheman
Jan 21st, 2000, 04:00 AM
You need to add a module like below:
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Then in the code add something like the following:
Sleep (10000) ' puts program to sleep for about 10 seconds
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.