Places a specified form or control at the front or back of the z-order within its graphical level. Places a control contained by the ToolBar object at the front or back of the controls array that determines the order in which controls appear in the toolbar.
Syntax
[Object.]ZOrder([nOrder])
Settings
nOrder
Specifies an integer indicating the position of the object relative to other objects. If you omit nOrder, the setting is 0.
Setting | Description |
0 | (Default) The object is positioned at the front of the z-order. |
1 | The object is positioned at the back of the z-order. |
Remarks
There are two graphical layers associated with objects. The back layer is the drawing space, where the results of the graphics methods appear, and the front layer is the object layer. The contents of one layer covers the contents of the layer behind. The ZOrder method arranges objects only within the layer where the object appears.
Note For a Page object, the ZOrder method does not affect the PageOrder property setting. ZOrder only determines the Page that is on top and active.
For more information about using controls, see Chapter 10, Using Controls, in the Programmer's Guide.