473,803 Members | 3,833 Online
Bytes | Software Development & Data Engineering Community
+ 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?
Nov 20 '05 #1
8 15675
* "Aaron Ackerman" <no@spam.com> scripsit:
If I am expanding (maximizing a form how do I maximize the tab control along
with it?


???

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
"Aaron Ackerman" <no@spam.com> wrote in
news:Od******** ******@TK2MSFTN GP09.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
Nov 20 '05 #3
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
Nov 20 '05 #4
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

Nov 20 '05 #5
Umm, no that works terribly I ment in code.
"poindexter frink" <de****@fleetco m.ca> wrote in message
news:Xn******** *************** *******@207.46. 248.16...
"Aaron Ackerman" <no@spam.com> wrote in
news:Od******** ******@TK2MSFTN GP09.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

Nov 20 '05 #6
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******** ******@TK2MSFTN GP12.phx.gbl...
Umm, no that works terribly I ment in code.
"poindexter frink" <de****@fleetco m.ca> wrote in message
news:Xn******** *************** *******@207.46. 248.16...
"Aaron Ackerman" <no@spam.com> wrote in
news:Od******** ******@TK2MSFTN GP09.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


Nov 20 '05 #7
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
Nov 20 '05 #8

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
| >
| >
|
|
|

Nov 20 '05 #9

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

Similar topics

6
1509
by: Aaron Ackerman | last post by:
If I am expanding (maximizing a form how do I maximize the tab control along with it?
2
5108
by: Michael Pedersen | last post by:
Hi group I want to be able to expand a huge form with a number of text fields. The number of fields must be entered in a form field and submitted, or alternatively be a drop down menu. I have tried both, but none of the methods succeded. When the submit button is hit a new page enters with the form inputs, I want them to appear at the end of my form. I have tried with something like:
6
3472
by: LSemos | last post by:
I am trying to lookup phone numbers in a separate table based on the name in the current Tab control tblContacts has the fields: Name, Phone, Fax, and Email In my Form's Tab control, I have the fields: DVP, Phone, Fax and Email. In the On Click properties of the Phone field, I have the following: =DLookUp("","","='" & & "'")
2
2653
by: Mathieu Chavoutier | last post by:
Hi. I'd like to have two panels of the same size, even after resizing. Each panels have to take the half of the screen (one on the left, and one on the right for example). So, Dockstyle doesn't works, because only one of the two panels can move. AnchorStyle doesn't works also, because the size have to expand when the form expand.
2
3643
by: Jeff C | last post by:
Hello all. Please please help me come up with a solution to this problem. Here it goes- --- code snipit--- 'TabControl1 ' Me.TabControl1.Anchor = System.Windows.Forms.AnchorStyles.Left Me.TabControl1.Controls.AddRange(New System.Windows.Forms.Control()
1
2166
by: theintrepidfox | last post by:
Dear Group I wonder if you can help me with the following. I have a form(Form2) that contains a tabcontrol. If I click 'Tab2' Form3 should be displayed and 'Form2' closed. The instruction to close Form2 is in the Load event of Form3 but it actually doesn't matter where I put it. Every time I get this error: An unhandled exception of type 'System.ObjectDisposedExceptio­­n' occurred in system.windows.forms.dll
0
9699
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10068
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9119
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6840
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5496
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3795
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2968
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.