VLFormDesigner Reference

MethodSaveLayout

See Also See Also Applies To Applies To

Saves the form and control layout data to the specified file. SaveLayoutEx is an extension to SaveLayout.

 

Syntax

object.SaveLayout(Byval sFileName As String)

 

The SaveLayout method syntax has these parts:

Part Description
object An object expression that evaluates to VLFormDesigner.
sFileName An string expression that corresponds to a file to which the layout data should be saved.

 

Remark

This method is equivalent to calling SaveLayoutEx with vlBinBag as the property bag type.

This method will save layout of the form in the specified file. It will automatically save basic information like control name, control's ProgID and position.

It will trigger SaveFormData event to let you store any form level data that you want to put in the archive. It will also trigger SaveControlData for each of the contained controls to let you specify any control level data that should be save in the archive.