Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I adjust the Width and Height of Tab Control Page

Status
Not open for further replies.

smsmail

Programmer
Aug 11, 2010
105
US
Hello,

This probably is simple, but I cannot figure it out. How do I adjust the width and height of the main (i.e.parent) tab control page.

When opening the program, the tab control page opens partially and all the tabs are not displayed.

Thanks so much for your help!



 
the answere to your question is

me.tabCtlName.width = xxx
me.tabCtlName.height = yyy

but i thin that this wont slove your problem i thin that you problem is a form size problem
 
Your post is somewhat confusing. A Tabbed Control has however many Pages you've designed it to have, but there is no 'main (i.e.parent) tab control page!' All Pages are the same size, governed by the size of the Tabbed Control itself. In Design View this can be modified by selecting the Tabbed Control (the Control itself, not one of its Pages) and grabbing an edge and stretching/shrinking it.

The situation you describe is usually caused by two things:

1) The Tabbed Control is too big for your Form size

2) The first Control that gets Focus, when the Form opens, is far enough down the Page (or down the Main Form, if you have Controls other than the Tabbed Control on the Main Form itself) that Access has to scroll down to display it.

Adjust the size of the Tabbed Control to fit the Form and in the Form_Current event, set Focus to a Control nearer the top.

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Thank you Missinglinq and PWise.

I have 10 subforms in the tab control. I adjusted the size of the subforms of each page. Also in the Resize_Event of the form, I used the DoCmd.MoveSize to adjust the form.

Thanks so much for you help! I really do appreciate your expertise. I am still learning. This is very different from mainframes.

SMS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top