How do I expand a tabcontrol along with the form?

  • Thread starter Thread starter Aaron Ackerman
  • Start date Start date
A

Aaron Ackerman

If I am expanding (maximizing a form how do I maximize the tab control along
with it?
 
If I am expanding (maximizing a form how do I maximize the tab control
along with it?

I think what you're looking for is the anchor property in design view. Play
around with it, and find how anchoring an object affects the resizing of
the control when the parent control is resized.

-- dexter
 
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
 
Umm, no that works terribly I ment in code.


poindexter frink said:
I think what you're looking for is the anchor property in design view. Play
around with it, and find how anchoring an object affects the resizing of
the control when the parent control is resized.

-- dexter
 
Hi Aaron,

It's easy to resize the Tab Control when the Form resizes so that it
matches size with the Form, but that's what Anchor. How does Anchor fail for
you when you maximise. Is it the issue of all the other Controls?

Or, putting it another way, your requirement must be something beyond the
simple - what exactly do you want to do?

Regards,
Fergus
 
So if the Anchor property will not do what you want then exactly what is it
that you want to do?
 
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" <[email protected]>
| References: <[email protected]>
<[email protected]>
| 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: <[email protected]>
| Newsgroups:
microsoft.public.dotnet.general,microsoft.public.dotnet.languages.vb,microso
ft.public.dotnet.languages.vb.controls
| NNTP-Posting-Host: ric-64-83-27-134-serial-sta.t1.cavtel.net 64.83.27.134
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:147377
microsoft.public.dotnet.languages.vb.controls:2941
microsoft.public.dotnet.general:112158
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Umm, no that works terribly I ment in code.
|
| | > 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
| >
| >
|
|
|
 
Back
Top