Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Need help with SystemParametersInfo (setting desktop work area)

Need help with SystemParametersInfo (setting desktop work area)

Scheduled Pinned Locked Moved Visual Basic
jsonhelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xx77abs
    wrote on last edited by
    #1

    Hello ! I'm using SystemParametersInfo API to set desktop work area so 25 pixels on top are free... I do it like this : SystemParametersInfo(SPI_SETWORKAREA, Nothing, area, SPIF_UPDATEANDSEND) where SPIF_UPDATEANDSEND = SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE and everything works! then my program is closed ... and everything stays that way for like 5 minutes. Then work area is restarted to full screen ... What can I do so work area that I set will be remembered at least until reboot ? thanks :)

    D 1 Reply Last reply
    0
    • X xx77abs

      Hello ! I'm using SystemParametersInfo API to set desktop work area so 25 pixels on top are free... I do it like this : SystemParametersInfo(SPI_SETWORKAREA, Nothing, area, SPIF_UPDATEANDSEND) where SPIF_UPDATEANDSEND = SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE and everything works! then my program is closed ... and everything stays that way for like 5 minutes. Then work area is restarted to full screen ... What can I do so work area that I set will be remembered at least until reboot ? thanks :)

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      xx77abs wrote:

      and everything stays that way for like 5 minutes. Then work area is restarted to full screen ... What can I do so work area that I set will be remembered at least until reboot ?

      Keep your code running. Once your code stops, that's it, the area you reserve is returned to the desktop.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      X 1 Reply Last reply
      0
      • D Dave Kreskowiak

        xx77abs wrote:

        and everything stays that way for like 5 minutes. Then work area is restarted to full screen ... What can I do so work area that I set will be remembered at least until reboot ?

        Keep your code running. Once your code stops, that's it, the area you reserve is returned to the desktop.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        X Offline
        X Offline
        xx77abs
        wrote on last edited by
        #3

        wow, thanks :) I thought about that, but didn't try to do it ... So after I set workspace area, only thing I need to do is not close my program ... thanks :) :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups