By
default, all the controls on a form are placed on the same layer
(the Default layer). If you are designing complicated forms with
many controls, you can take advantage of the Form Editor's layering
ability.
Layering works like this: you can create multiple layers and
then assign different controls on the form to different layers.
You can then hide a layer, thus hiding all the controls on that
layer until you make it visible again. You can also lock a layer,
thus ensuring that all controls on the layer cannot be changed.
Note: Layering is a form editing feature only! You cannot
make layers visible and invisible dynamically during run time.
x
Procedure: How to Create a Layer
-
In the
Form menu, click Edit layers or click the Edit
layers
button on
the Layout toolbar to open the Layers Sheet dialog box.
-
Click Add.
-
If you
wish, rename your layer by typing over the name in the Name box.
-
Click OK.
The new layer is added on top of
the existing layers.
x
Procedure: How to Make a Layer Active
To
make a layer active so that all new controls will be placed on this
layer:
-
In the
Form menu, click Edit layers or click the Edit
layers
button
on the Layout toolbar to open the Layers Sheet dialog box.
-
Select
the layer you want to make active.
-
Click Select.
-
Click OK.
x
Procedure: How to Hide or Unhide a Layer
-
In the Form menu, click Edit layers or
click the Edit layers
button
on the Layout toolbar to open the Layers Sheet dialog box.
-
Select
the layer you want to hide or unhide.
-
Select
or clear the Hide box.
-
Click OK.
x
Procedure: How to Lock or Unlock a Layer
-
In the
Form menu, click Edit layers or click the Edit
layers
button on
the Layout toolbar to open the Layers Sheet dialog box.
-
Select
the layer you want to lock or unlock.
-
Select
or clear the Lock box.
-
Click OK.
x
Procedure: How to Change the Order of the Layers
-
In the
Form menu, click Edit layers or click the Edit
layers
button on
the Layout toolbar to open the Layers Sheet dialog box.
-
Select
the layer you want to move.
-
Click
the Up or Down button.
-
Click OK.
x
Procedure: How to Move an Existing Control to Another Layer
-
Select
the control.
-
In the
property sheet, select the Layers property.
-
Select
the name of the layer you want the control to be on.
x
Procedure: How to Rename a Layer
-
In the
Form menu, click Edit layers or click the Edit
layers
button on
the Layout toolbar to open the Layers Sheet dialog box.
-
Select
the layer you want to rename.
-
Type
a new name in the Name box.
-
Click OK.
x
Procedure: How to Delete a Layer
-
In the
Form menu, click Edit layers or click the Edit
layers
button on
the Layout toolbar to open the Layers Sheet dialog box.
-
Select
the layer you want to delete.
-
Click Delete.
-
Click OK.