Tab control - Things goes behind the tab control ??

S

SpookiePower

I have made a form with some labels,buttons and textboxes on.

Now I have decided to put a tab control on my form and then place
all the labels,buttons and textboxes that was on the form, onto my
new tab control. But when I do that, they all disappear behind the tab
control, like they still stays on the form and not on the tab control.

I found out that if I put some new labels,buttons and textboxes onto
the tab control, they stays there and do not disappear behinde the
tab control, but I do not want to do it this way, with all the stuff on
my form. I just want to copy/past the old ones onto the tab control

How can I get them to stay on the tab control ?
 
D

Dirk Goldgar

SpookiePower said:
I have made a form with some labels,buttons and textboxes on.

Now I have decided to put a tab control on my form and then place
all the labels,buttons and textboxes that was on the form, onto my
new tab control. But when I do that, they all disappear behind the tab
control, like they still stays on the form and not on the tab control.

I found out that if I put some new labels,buttons and textboxes onto
the tab control, they stays there and do not disappear behinde the
tab control, but I do not want to do it this way, with all the stuff
on my form. I just want to copy/past the old ones onto the tab control

How can I get them to stay on the tab control ?

You're right about what's happening -- the controls are being placed on
the form surface behind the tab control. To get them onto a tab page,
select them and cut them from the form, then click on the tab of the
page to select the page, then paste the controls.
 
S

SpookiePower

Thanks. They are now on the frontpage of the tabcontrol

But all my VB code does not work anymore....
 
D

Dirk Goldgar

SpookiePower said:
Thanks. They are now on the frontpage of the tabcontrol

But all my VB code does not work anymore....

If you copied-and-pasted, rather than cut-and-pasted, the controls would
have been renamed, and that would have broken the links to the event
procedures you had previously written. Check the names of the controls
to see if that's what happened. If so, rename each of the controls to
the original name, and see if that restores the connection to the
existing event procedures. Also, check to make sure the event
properties on the control's property sheet are set to "[Event
Procedure]" where they should be.
 

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

Similar Threads

Tab Control 2
Tab control on tab control 1
Tab control within a tab control 1
Tab Control 3
Tab control "bleed through" 4
Coloring Tab Control 1
Tab Control Object formating 3
Very weird tab control behaviour !?! 1

Top