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. C#
  4. Storing Some settings in Registry

Storing Some settings in Registry

Scheduled Pinned Locked Moved C#
questionwindows-admin
4 Posts 4 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.
  • R Offline
    R Offline
    ronin1770
    wrote on last edited by
    #1

    Hi, I got a quick question : Is there any way to store Maximimze/Minimize Size and Location of form in Registry? So upon restart - it would read those values from registry and return to its former state thanx in advance

    M Y L 3 Replies Last reply
    0
    • R ronin1770

      Hi, I got a quick question : Is there any way to store Maximimze/Minimize Size and Location of form in Registry? So upon restart - it would read those values from registry and return to its former state thanx in advance

      M Offline
      M Offline
      MoustafaS
      wrote on last edited by
      #2

      why would you do this, in the application it self you can set the size properties and then in each restart of the application it will be at the same size of that you choosed and also you can set it to sonstant size and set the FormBorderStyle property to FixedSingle or Fixed3D to make no one has the ablity to change the size while also when doing this you can make him has the ability to MAXIMIZE to the screen coordinates only ByMindOnlyYouCanDoIt

      1 Reply Last reply
      0
      • R ronin1770

        Hi, I got a quick question : Is there any way to store Maximimze/Minimize Size and Location of form in Registry? So upon restart - it would read those values from registry and return to its former state thanx in advance

        Y Offline
        Y Offline
        Yaakov Davis
        wrote on last edited by
        #3

        Check the Registry class.

        1 Reply Last reply
        0
        • R ronin1770

          Hi, I got a quick question : Is there any way to store Maximimze/Minimize Size and Location of form in Registry? So upon restart - it would read those values from registry and return to its former state thanx in advance

          L Offline
          L Offline
          Luis Alonso Ramos
          wrote on last edited by
          #4

          As it was suggested, check the Registry class. Just take into account that you have to store the restored position, as well as the state (maximized, minimized or restore.) You have to save the restored position before the window is minimized or maximized, because when minimized it is moved off-screen. You can do this in the SizeChanging event. -- LuisR


          Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!

          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