VLFormDesigner Reference

EventLoadControlData

See Also See Also Applies To Applies To

This event occurs when data corresponding to a control needs to be read from the archive.

 

Syntax

Private Sub object_LoadControlData (aControl As Object, aPropBag As CPropertyBag)

 

The LoadControlData event syntax has these parts:

Part Description
object An object expression that evaluates to VLFormDesigner.
aControl An object of type Control whose data needs to be read.
aPropBag An object of type CPropertyBag which will holds the data in the form of key, value pairs. You read previously saved data using ReadProperty method of the property bag object.

 

Remark

This event will be triggered once for each of the stored controls when the LoadLayout or LoadLayoutEx is called.

VLFormDesigner will automatically reads the position, name and ProgId of the control and automatically create and position the control when you load the layout information using LoadLayout method.

This event allows you to read any control level information that you have previously stored along with the control position information.