473,486 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1483
"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
2244
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
2337
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
15633
by: Aaron Ackerman | last post by:
If I am expanding (maximizing a form how do I maximize the tab control along with it?
9
3437
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
1882
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
1978
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
3338
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
1400
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
2102
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
7094
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7173
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...
1
6839
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
7305
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...
1
4863
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...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3066
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.