Hi Aaron,
If you want to let the tabcontrol fulfill the form, you can set its dock
property to Fill.
If you want to keep the tabcontrol's scale with the form, you should set
the tabcontrol's anchor property to "Top, Bottom, Left, Right", then the
tabcontrol will keep its propotion.
If you still have any questions, please feel free to let me know.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| From: "Aaron Ackerman" <no@spam.com>
| References: <Od************ **@TK2MSFTNGP09 .phx.gbl>
<uN************ **@TK2MSFTNGP11 .phx.gbl>
| Subject: Re: How do I expand a tabcontrol along with the form?
| Date: Thu, 16 Oct 2003 14:22:54 -0400
| Lines: 25
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <Oj************ **@TK2MSFTNGP09 .phx.gbl>
| Newsgroups:
microsoft.publi c.dotnet.genera l,microsoft.pub lic.dotnet.lang uages.vb,micros o
ft.public.dotne t.languages.vb. controls
| NNTP-Posting-Host: ric-64-83-27-134-serial-sta.t1.cavtel.n et 64.83.27.134
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:147377
microsoft.publi c.dotnet.langua ges.vb.controls :2941
microsoft.publi c.dotnet.genera l:112158
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
|
| Umm, no that works terribly I ment in code.
|
| "Fergus Cooney" <fi******@tesco .net> wrote in message
| news:uN******** ******@TK2MSFTN GP11.phx.gbl...
| > Hi Aaron,
| >
| > Have you looked into the Anchor property? Anchor the Tab Control to
| all
| > sides and it will grow and shrink with the Form.
| >
| > You'll still have to manage the Controls on each Page, but they, in
| turn,
| > can be anchored to the Tab Pages.
| >
| > Generally - Anchor a Control to one side of its Container and it
will
| keep
| > its position relative to that side. Anchor the Control to both sides
(in a
| > given direction) and it will grow and shrink along with the Container.
| >
| > Regards,
| > Fergus
| >
| >
|
|
|