Send Topic Feedback | See Object Hierarchy Chart
PC-DMIS 2023.2 Object Library
PCDLRN ActiveX DLL > PropertySheetDialog Object : BringToZPosition Method
BringToZPosition Method
Description

This method sets the Z position of the property sheet based on the parameter's value.

When you have multiple property sheets open, the Z position controls the order in which the item appears.

Syntax
Visual Basic
Public Function BringToZPosition( _
   ByVal zPositionMode As BringToZPositionMode _
) As Boolean
Parameters
zPositionMode
ValueDescription
Bottom 
NotTopMost 
Top 
TopMost 
Return Type
Boolean.
It returns True of new Z order has been set for the item.
It returns False if it fails to set the Z order.
Example
This moves a property sheet to the top-most position:
// ...
    PCDLRN. IPropertySheetDialog propertySheet = thePropertySheet;
    PCDLRN.BringToZPositionMode mode = PCDLRN.BringToZPositionMode.NoTopMost;
    if (thePropertySheet.IsReady) 
{
   thePropertySheet.BringToZPosition(mode);
}
// ...
See Also