Home All Groups Group Topic Archive Search About

Turn off Monitor using VB

Author
23 Jan 2006 7:38 PM
Micah Hastings
The last time I did this was back in Visual Basic 6. Now I am using VB.NET
2005.

When I use my code now, it turns off the monitor just fine. However when I
move my mouse the monitor comes back on.
Back in VB6, I was able to turn off the monitor and it wouldn't come back on
until I issued the API command to turn in back on regardless of mouse
movement.
How do I accomplish this in VB.NET?

Thanks for any help in advance,
Micah Hastings

Author
23 Jan 2006 11:11 PM
Scott M.
I would think you'd need the same API from VB .NET.


Show quoteHide quote
"Micah Hastings" <Mhasti***@rosebudtech.com> wrote in message
news:%23PEMgSFIGHA.3000@TK2MSFTNGP14.phx.gbl...
> The last time I did this was back in Visual Basic 6. Now I am using VB.NET
> 2005.
>
> When I use my code now, it turns off the monitor just fine. However when I
> move my mouse the monitor comes back on.
> Back in VB6, I was able to turn off the monitor and it wouldn't come back
> on
> until I issued the API command to turn in back on regardless of mouse
> movement.
> How do I accomplish this in VB.NET?
>
> Thanks for any help in advance,
> Micah Hastings
>
>
>