Using Tab Control

  • Thread starter Thread starter ilusik
  • Start date Start date
I

ilusik

Hi Everybody:
I have to redesign existing form: all controls of existing
form shall reside in one page of new multi page form. Some
more controls will be added into other pages.
How to transfer multiple controls of existing form into
one page of the new form without loosing their names?
The easiest way is probably to put existing form into the
page as the subform, but then other problems may arise
because controls on other pages will belong to other form.
So, what is the prefarable way?
Thanks in advance, Ilya.
 
Hi Everybody:
I have to redesign existing form: all controls of existing
form shall reside in one page of new multi page form. Some
more controls will be added into other pages.
How to transfer multiple controls of existing form into
one page of the new form without loosing their names?
The easiest way is probably to put existing form into the
page as the subform, but then other problems may arise
because controls on other pages will belong to other form.
So, what is the prefarable way?
Thanks in advance, Ilya.

Temporarily make your form area large enough so the TabContrlol can be
positioned below all of your current objects. Paint around all of the
objects with your mouse to select them all at once. Now press Ctl-X to cut
them to the clipboard. Then select the page on the TabControl where you
want them and press Ctl-V to paste them. Rearrange as necessary and then
reposition the TabControl where you want it.

The objects will all retain their original names, but any that had event
procedures on them will need to have the "[Event Procedure]" entries
replaced because those will be lost. You do not lose the code, just the
entry to make it run.

Cut n' paste is the only way to get existing controls onto a TabPage. You
cannot drag n' drop them as that just places them "in front" of the entire
control. To make sure they were inserted onto the page make sure that you
only see them on one page and that when you move the entire TabControl
around all of the objects move with it.
 
Back
Top