Copying control between tab controls

arage

Registered User.
Local time
Today, 23:49
Joined
Dec 30, 2000
Messages
537
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!
 
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?
 
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.
 
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!
 

Users who are viewing this thread

Back
Top Bottom