VLFormDesigner Reference

MethodSaveLayoutEx

See Also See Also Applies To Applies To

Saves the form and control layout data to the specified file.

 

Syntax

object.SaveLayoutEx(ByVal sFileName As String, ByVal eBagType As vlPropertyBagType)

 

The SaveLayoutEx 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.
eBagType An integer expression specifying the type of property bag to be used for storing the layout data, as described in Settings.

 

Settings

The settings for eBagType are:

Constant Setting Description
ConstantvlBinBag 0 Use binary property bag.
ConstantvlXmlBag 1 Use Xml property bag.

 

Remark

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.