Is there a way to change 'Z' order of controls on a form?

R

Robin

Hi

I've got 2 controls that I wish to move so that they sit on top of an image,
but they appear (or rather don't) behind the image. The z order seems to be
controlled entirely by the order in which things were created - newest on
top.

I could obviously recreate these controls but they are fairly complex and I
don't really want to do that. I could copy the existing controls; they do
then appear on top but I lose all of the event procedures so I would need to
go through the code renaming them.

Is there any other way to change z order?

(Ok - I just found that cutting and pasting each control works rather than
dragging it, although the event procedures go missing from the control
properties, but I'd still like to know if there's a better way to do this?)

Robin
 
A

Allen Browne

In form design view, you can select a control, and on the Format menu choose
Bring-to-Front or Send-to-Back.
 
R

Robin

Ah. One of the consequences of 'discovery learning' on your own, is that
you sometimes miss the most stupidly obvious things.

Thank you Allen - I'm embarrassed now :)

Regards

Robin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top