Navigation:  Contents > Control Methods >

SaveForm Method

Previous pageReturn to chapter overviewNext page


Saves the current state of the form and all its controls.





object.SaveForm(FormObject, [SavePersistent], [StrApplicationName])


Where object evaluates to an ActiveResize control.



The SaveForm method takes the following arguments:



FormObjectSpecifies the object (form object) for which the state is to be saved.
SavePersistentOptional. Boolean expression specifying whether the form state (size and position) is to be saved persistently. Default value is False.
StrApplicationNameOptional. String expression Specifying the name of the application where ActiveResize is used.




The SaveForm method can be used to save the current size and position of the form and all form controls so that this state can be restored later on by using the RestoreForm method. If the SavePersistent argument is specified, your must also specify the StrApplicationName.


To save the size and position of your form and enable ActiveResize to restore the last saved form size and position for every future session of your application (by calling the RestoreForm method), you must specify the SavePersistent (=True) and specify a value for the StrApplicationName argument. If SavePersistent is ignored or is set to False, the form size and position will be restored only for the current session when the RestoreForm method is called.


Return to Contents



Copyright 2002-2018 - VBGold Software