TMS FNC App Form Persist — Guides
Configuring the INI file
Set FileName to a writable path such as a user's application data folder. When UseUserName or UseMachineName is enabled, the component derives a unique INI section key so that multiple users or machines share one file without overwriting each other's settings.
Saving and loading manually
Call SaveFormSettings and LoadFormSettings at the appropriate lifecycle points in your form if you want explicit control over when persistence occurs:
{ Save on close: }
AppFormPersist1.SaveFormSettings;
{ Restore on startup: }
AppFormPersist1.LoadFormSettings;
Multi-monitor considerations
When a form is restored to a monitor that is no longer attached, the position may fall outside visible bounds. Validate the restored position against Screen.MonitorCount and clamp it to Screen.Monitors[0].WorkareaRect if needed before calling LoadFormSettings.