Storing Some settings in Registry
-
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
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
-
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
Check the
Registry
class. -
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
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 theSizeChanging
event. -- LuisR
Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!