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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change ZOrder of text boxes that show through tab controls

Status
Not open for further replies.

AlanJordan

Programmer
Sep 15, 2005
139
US
I sometimes place a tab control on top of many other controls and place a combo box and password box on the control, along with instructions to log into that page.

After a successful login, the tab control is made invisible, exposing the controls underneath it.

However, there are times when one of the controls, a text box, for example, shows through the tab control. (It's Z order is higher, I assume.)

Does anyone know how to change the Z-order of the offending controls?

Thanks.

Alan
 
Access does not have a z-order feature.
All you can do is use the Format>SendToBack/BringtoFront and try to manage it that way.
You can make controls visible/invisible at different times, of course so it should be possible to get a working arrangement.
 
Lupins46,

Thanks. I tried your suggestion, and it did not work. Then, I noticed that when I put my cursor in the text box it hid. So, I set the focus for another control that was not being hidden, and the text box no longer showed through.

Alan
 
It's difficult to create a testbed for this sort of thing.There are so many variables at play.
Why are you using a tab control, though? Why not just have a big rectangle?

In any case if you can control when the tab becomes invisible you can control when the other controls become visible using the samw technique.

 
Thanks for your interest. I'm using a tab control because it allow the user to click on a tab which provides an explanation/directions for the screen.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top