CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 1999
    Posts
    1

    change screensaver

    i would like to know how do i enable and disable screensaver and monitor power off through vb project.


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: change screensaver

    the SystemParametersInfo API allows you to enable/disable screensaver.
    use the SPI_SETSCREENSAVEACTIVE as uiAction parameter and uiParam to True/False.


  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: change screensaver

    SystemparametersInfo has also a few uiAction values that you can use for dealing with power off issues:
    SPI_SETPOWEROFFACTIVE
    SPI_SETPOWEROFFTIMEOUT


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured