Specifies the alignment of an ActiveXв„ў control (.ocx) on a form. Available at design time and run time.
OLEContainerControl.Align[ = nAlign]
The settings for the Align property are:
Standard alignment. The ActiveX control is placed in the same position as the OLE Container control on the form.
Top. The ActiveX control is placed at the top of the form.
Bottom. The ActiveX control is placed at the bottom of the form.
Left. The ActiveX control is placed at the left edge of the form.
Right. The ActiveX control is placed at the right edge of the form.
Applies To: OLE Container Control
An ActiveX control (.ocx file) is placed in OLE Container control.
The Align property is only available for ActiveX controls that support changes to their alignment. Insertable OLE objects such as Microsoft Excel worksheets do not support the Align property.
The Align property is available only for ActiveX controls that are placed on a form.
If two or more ActiveX controls have the same Align property setting, the controls are stacked on top of each other.