IASForm::SetZOrder

This method places a control in a specified position in the z-order.

Syntax

HRESULT SetZOrder( IDispatch *pdispControl, IDispatch *pdispControlAfter );

Parameters

pdispControl
Pointer to the control to be placed in the z-order.
pdispControlAfter
Pointer to the control that precedes the control specified in pdispControl. If this parameter is NULL, pdispControl becomes the first control in the z-order.

Return Values

NOERROR indicates success. ASFC_E_CTRL_NOSUCH indicates that one of the two controls is not on the form. If an error occurs, the appropriate HRESULT value is returned.