Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restore form size

Status
Not open for further replies.

Totte

Programmer
Jun 6, 2001
317
SE
I have an application with several forms. On e form is resizable and i save the last set size in the registry whenever a "resize" action is done. But when the application launches it does resize the form thus rewriting these datas with the default form size.

Som now i'm wondering: how to set the last size saved in the registry? Or more correctly: how do i determine when it's a user-change and when it's a program-start change?

Totte
Keep making it perfect and it will end up broken.
 
Well, i tried a little and actually came up with a solution: i'm checking the 'Formx->Visible' flag! As the form is invisible at startup that property actually does the trick but i get the feeling that it's at "dirty" solution som i anyone has a better one i'm all ears!

Totte
Keep making it perfect and it will end up broken.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top