Tab Control Pages showing controls on all pages!

Tab Control Pages showing controls on all pages!

Post by Y2F0aH » Wed, 08 Dec 2004 04:27:12


Ok, I decided to use tabs for my form and after the fact changed the
properties. I dragged the controls to the first page and now this
information is on all the pages. I don't know how to make these controls
only appear on the pages I want.
--
help me please
 
 
 

Tab Control Pages showing controls on all pages!

Post by Sandra Dai » Wed, 08 Dec 2004 04:38:48

Instead of dragging the controls to the pages, you have to cut them, select
the correct page and then paste the control on the desired page.

**Note, when you cut and paste the control, any event properties for that
control will become detached from the control. The code won't be lost but
you will need to go back to the property sheet and reselect "[Event
Procedure]" for any required event.

--
Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.

 
 
 

Tab Control Pages showing controls on all pages!

Post by Y2F0aH » Wed, 08 Dec 2004 04:47:02

Is there anything I can do to fix it now? Is there some property that you
can change to make controls apply to all pages, etc?
 
 
 

Tab Control Pages showing controls on all pages!

Post by Sandra Dai » Wed, 08 Dec 2004 05:09:10

Hi Cathy,

The controls are currently directly on the form, and with a transparent
background they show through and appear as though they are on all pages. Its
actually a neat trick to use when you do want a control to appear as though
its on all pages.

However in your case you can still fix the controls, just select all the
ones that go on a particular page. Press Ctl-X to Cut them, click the
correct page to select it then press Ctl-V to paste them on the page.

In my experience, this is the only way to fix the problem - the properties
that Access uses to determine contol placement are not exposed to the Access
UI.


--
Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.
 
 
 

Tab Control Pages showing controls on all pages!

Post by Rick Brand » Wed, 08 Dec 2004 05:14:19


you

If you move the TabControl in design view you will see that you didn't in
fact put the controls on the TabControl at all. They are on the form in
the same piece of real estate that the TabControl currently sits. It is
"by design" that such controls show through so that you see them on all
pages because in many cases this is exactly what you want.

*New* controls being added to the form from the control Toolbox can be
dragged and dropped onto TabPages. You just have to make sure the desired
page is on top and when you position your mouse cursor over it the page
will turn black when you are properly positioned for the drop. Then you
release the mouse button and the new control will be inserted into that
TabPage.

*Existing* controls cannot be dragged and dropped onto TabPages. You have
to Cut and Paste them.


--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com