Sends a line or shape control to the back of the z-order.
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
The SendToBack method can be used to position a LineShape, OvalShape or RectangleShape control behind of all other line and shape controls on a given container. It does not position the control in front of other types of controls on the container; graphics drawn with line and shape controls always appear behind the other controls.
The following example demonstrates how to use the SendToBack method to change the z-order of shapes at run time. This example requires that you have a RectangleShape control named RectangleShape1 and an OvalShape control Named OvalShape1 on a form. For best results, make the controls different colors and make sure that they overlap each other.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.