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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving the Form size of the last user?

Status
Not open for further replies.

tommy19

Programmer
Aug 23, 2001
49
US
Hi all, I am wondering how I would save the last form position and size, so that the end user can adjust the app window and reopen it in the same position. Thanks for any advice and help!
Tommy19
 
in the form load you can retrieve the settings from the registry

Me.Top = GetSetting("Lason", "frmWorkorder", "Top", 0)
Me.Left = GetSetting("Lason", "frmWorkorder", "left", 0)


in form unload you can save the settings to the registry

SaveSetting "Lason", "FrmWorkOrder", "Top", Me.Top
SaveSetting "Lason", "FrmWorkOrder", "Left", Me.Left
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top