Relative to a TAB Control I cannot 'send back' List Box and Subfor

G

Guest

Other controls get hidden when I 'Bring To Front' the Tab control.

Even if I Send Back the List and Subform they stay in front. Is this normal?
Can code have more control.
 
A

Allen Browne

Controls can be either:
a) on the form, or
b) in one of the pages of the tab control.

From your description, it sounds like you have the controls sitting on the
form, when you want them in the tab control.

To change them:
1. Open the form in design view.
2. Select the controls that should be in page 1 of the tab control.
3. Cut them to clipboard (Ctrl+X.)
4. Click the tab page (i.e. click on the actual tab at the top of the tab
control.
5. Paste (Ctrl+V.)
 
G

Guest

Thanks Allen

However for various reasons I really do want to 'hide' ALL the controls on
the form 'behind' the tab control and I cannot do it for these two.

Picture a form approx 10cm x 10cm in size.
The top half has controls (full of them).
The bottom half has a Tab Control with 5 pages. Each page has lots of
controls.
What I want to do is when page5 tab is clicked I want to resize and
reposition the Tab Control to fill up almost all the form. The reason is that
page5 has (I want it to have if I can) lots of large controls that cannot fit
into page5 as it currently stands.
In other words have a large Tab control ONLY when page5 is in use. Also I do
not want to create another page as the page5 controls are very much related.
Maybe there is a better way of handling this design objective?
I would like to NOT create another form.

--
Regards
Tom


Allen Browne said:
Controls can be either:
a) on the form, or
b) in one of the pages of the tab control.

From your description, it sounds like you have the controls sitting on the
form, when you want them in the tab control.

To change them:
1. Open the form in design view.
2. Select the controls that should be in page 1 of the tab control.
3. Cut them to clipboard (Ctrl+X.)
4. Click the tab page (i.e. click on the actual tab at the top of the tab
control.
5. Paste (Ctrl+V.)
 
A

Allen Browne

If necessary, you can hide the controls you want to get rid of just by
setting the Visible property to No.

Resizing the tab control is not as easy as it sounds. Before you can shrink
its Width or Height, you must move/shink any controls left/up so they do not
occupy the space you want to shink. If you have control grouping (such as
option buttons in an option group on the tab page), it gets even more messy.

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

ThomasAJ said:
Thanks Allen

However for various reasons I really do want to 'hide' ALL the controls on
the form 'behind' the tab control and I cannot do it for these two.

Picture a form approx 10cm x 10cm in size.
The top half has controls (full of them).
The bottom half has a Tab Control with 5 pages. Each page has lots of
controls.
What I want to do is when page5 tab is clicked I want to resize and
reposition the Tab Control to fill up almost all the form. The reason is
that
page5 has (I want it to have if I can) lots of large controls that cannot
fit
into page5 as it currently stands.
In other words have a large Tab control ONLY when page5 is in use. Also I
do
not want to create another page as the page5 controls are very much
related.
Maybe there is a better way of handling this design objective?
I would like to NOT create another form.
 

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