473,411 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

How do I expand a tabcontrol along with the form?

If I am expanding (maximizing a form how do I maximize the tab control along
with it?
Jul 21 '05 #1
6 1480
"Aaron Ackerman" <no@spam.com> wrote in
news:Od**************@TK2MSFTNGP09.phx.gbl:
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
Jul 21 '05 #2
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
Jul 21 '05 #3
Umm, no that works terribly I ment in code.

"Fergus Cooney" <fi******@tesco.net> wrote in message
news:uN**************@TK2MSFTNGP11.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

Jul 21 '05 #4
Umm, no that works terribly I ment in code.
"poindexter frink" <de****@fleetcom.ca> wrote in message
news:Xn******************************@207.46.248.1 6...
"Aaron Ackerman" <no@spam.com> wrote in
news:Od**************@TK2MSFTNGP09.phx.gbl:
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

Jul 21 '05 #5
So if the Anchor property will not do what you want then exactly what is it
that you want to do?

"Aaron Ackerman" <no@spam.com> wrote in message
news:uO**************@TK2MSFTNGP12.phx.gbl...
Umm, no that works terribly I ment in code.
"poindexter frink" <de****@fleetcom.ca> wrote in message
news:Xn******************************@207.46.248.1 6...
"Aaron Ackerman" <no@spam.com> wrote in
news:Od**************@TK2MSFTNGP09.phx.gbl:
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


Jul 21 '05 #6
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
Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: cdj | last post by:
Hi all, I've got a tabControl, initially with one tabPage, along with two buttons, one to add another tabPage, and one to delete the current (selected) tabPage. On each tabPage, when it is...
2
by: Francois Vanderseypen | last post by:
Can someone tell me why you cannot drag something onto a tabcontrol with zero tabpages? I have a kind of 'docking' interface and relies heavily on GDI+, a screenshot is available here: ...
8
by: Aaron Ackerman | last post by:
If I am expanding (maximizing a form how do I maximize the tab control along with it?
9
by: Michael Turner | last post by:
Hi Guys Having problem with the tab control, I need to set the background color to something different than the standard, I have found code on the web and now can redraw the tabpage buttons so...
2
by: Aspnot | last post by:
I have a TabControl that is on a form that is bound to a DataSet. I bind the dataset to the form in the Form_Load event. The TabControl has 2 TabPages. The first TabPage contains a button and a...
2
by: Gregory Gadow | last post by:
The TabControl that shipped with .NET 2.0 is seems to be buggier than dog droppings in high summer. Among several complaints, the tabs themselves look horrifically ugly when their pages have the...
2
by: Simon Verona | last post by:
I have a few hundred forms in my application. All are based on a custom base form class. I decided that I wanted to globally change the look and feel of many of the controls in my application -...
0
by: bertie78 | last post by:
Hi all, New poster here! I'm having some difficulty updating a tabcontrol cross-threads. The general idea is : the main thread is the owner of the tab control and the form controls. However, due...
2
by: Jamey | last post by:
Ran into an inconvenience with TabControls yesterday. I found a partial explanation from Allen Browne on the MS message boards explaining when it happens, but not why. I thought Stephen Lebans...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.