moving a form control to another page in a tab control

P

Paul

I have a form that uses a tab control with multiple pages. I'm trying to
move a control from one tab control page to another, but I'm having
difficulty. I tried to cut and paste the control to the new tab page, but
it remains visible on all pages. I've looked for a control property that
specifies which page it belongs to, but I can't find one.

What can I do to make that control visible on a different page, but only on
that page instead of all pages?

Thanks in advance,

Paul
 
C

Clifford Bass

Hi Paul,

The trick for pasting a control onto a tab page is that you must click
on the actual tab itself, at the top, of the page where you want to paste it,
before doing the paste. If you do not do this, then it pastes it into the
main part of the form, underneath the tab control. If the tab control is
transparent, then all controls underneath it show on all pages.

Clifford Bass
 
P

Paul

Thanks for the reply, Clifford.

I have been clicking the tab of the desired destination page before pasting
the control, but the pasted control nevertheless shows on more than one
page. In fact no matter which page I select by clicking on the different
tabs at the top of the Tab Control, that pasted control displays on every
one of them. In other words, it takes display priority above all pages of
the tab control. But if I format it with the "Send to Back" command, then
it doesn't show on even the desired tab control page.

The only way I found to work around this problem was to recreate the same
control on the desired page, instead of cutting and pasting an existing
control. This solves the problem, but I was also trying to understand what
property of a control determines the page on which it will be displayed.

Any ideas about this?
 
J

John W. Vinson

I have been clicking the tab of the desired destination page before pasting
the control, but the pasted control nevertheless shows on more than one
page.

It's tricky... you can't select the tab page by clicking the *surface* of the
page, but only by clicking the small *tab* (the sort-of-rectangle with the
caption). When you have successfully done so the entire page should darken,
indicating that it has been selected. Pasting (with Ctrl-V so you don't need
to move the mouse) will put the control from the clipboard into the upper left
corner of the page (or as close to there as it will fit); you'll need to move
it.

Is that not what you're seeing? If not, it might be a version or a corruption
issue.
 
P

Paul

Clifford, John,

Ok, I've experimented with it some more and I see that you're both right. I
just need to make sure that the little rectangle that appears in the tab at
the top of the page is activated so the page is definitely activated.

Thanks for giving me the solution to this.

Paul
 

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