Microsoft Office Tutorials and References
In Depth Information
Working with the Z-Order
The Z-order of controls is relevant when one control overlaps another. You can think of it like
overlapping sheets of paper on your desk — there’s one on top, one on the bottom, and the ones in
between in a certain order. With controls, this is the Z-order . For example, Figure 26.11 shows a
label control that overlaps a TextBox control. You can see that the Label control hides the portion
of the TextBox that is behind it — this means that the Label is at the front of the Z-order.
When controls overlap, the Z-order determines which one — the Label control in this figure — is on top.
More Precise Z-Order Control
When there are more than two controls overlapping, you can precisely control their position in
the Z-order rather than simply sending them to the front or back. Click the arrow next to the
Bring to Front or Send to Back button on the ribbon and you’ll see Bring Forward and Send
Backward commands. These commands move the selected control one position in the indicated
order. For example, if you had three overlapping controls, selecting the one at the top of the Z-order
and using the Send Backward command would result in that control being at position 2 and the
control that was at position 2 being at the top of the Z-order.