View Full Version : Copying control between tab controls


arage
12-31-2000, 02:30 PM
Copying control between tab controls
Hi,
My user form that I made is basically a tab control (2 tabs) I have a locked text box in an option group on the 1st tab & for reference sake would like it to appear on the 2nd tab also. However, copying the initial option group with the text control in it to the 2nd tab PLACES A 2ND COPY OF THE OPTION GROUP ON THE 1ST TAB (this 2nd copy of the option group on the 1st tab is located in the same position where I placed the copied option group on the 2nd tab)

Deleting any one of the copies removes it from both tabs. Can someone recommend a strategy or at least make me understand whats going on?
Thanks!

Neal
01-01-2001, 06:41 AM
Can you just put the option group on the first tab and resize the second tab so that is also visible when that tab is selected?

ElsVanMiert
01-01-2001, 09:49 AM
There is some kind of quirk in A2K if you copy controls in EMPTY tabs. It just does not work because the empty tab does not get the focus.
The workaround:
Place a dummy-control in the empty tab
Copy your controls
set the focus to the dummy-control
Paste the controls
Delete the dummy-control.

That's all.

arage
01-01-2001, 11:53 AM
NeaL: no, i don't think i can do that.

ELsVan: thanks for the tip, although i'm not using a2k i have a97 your advice seemd to work. i'll need to remember this.

thanks again you guys happy new year!