Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make loaded objects appear above other objects?

Status
Not open for further replies.

Cndn

Programmer
Nov 22, 2001
22
0
0
CA
Using the load statement I am loading new objects into arrays:

Ex. Load Shape1(1)

However, when in the same place as other objects they go underneath instead of overtop. How can I make them go overtop???
 
"The Shape control is a graphical control" so you can never show it over a textbox or other nongraphical control. However a PictireBox is a nongraphical control so if you put the ShapeControl inside the PictireBox then you can use Zorder to put the PictureBox over other nongraphical controls.

See ZORDER method.
"Three graphical layers are associated with forms and containers. The back layer is the drawing space where the results of the graphics methods are displayed. Next is the middle layer where graphical objects and Label controls are displayed. The front layer is where all nongraphical controls like CommandButton, CheckBox, or ListBox are displayed. Anything contained in a layer closer to the front covers anything contained in the layer(s) behind it. ZOrder arranges objects only within the layer where the object is displayed." Forms/Controls Resizing/Tabbing Control
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top