Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / September 2007

Tip: Looking for answers? Try searching our database.

Autosize for tabcontrol

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TheVillageCodingIdiot - 05 Sep 2007 14:48 GMT
I am still somewhat wet behind the ears with .net 2.0. I'm creating a
program for my helpdesk to assist in some common stuff we have to do,
reset passwords and notifying techs of P1 tickets. The question i have
is right now I have a form with a TabControl filling the entier form.
There are currently 3 tabs in it. Now each tab takes up different
amount of space, such as the tab for Active Directory administration
needs more space then the Net Send tab. I know I could just manually
change the size with code but I am wonder if there is a way to get the
form and tabs to size automatically?

Thanks in advance
Kevin Spencer - 06 Sep 2007 12:52 GMT
You need to code the size change. I'm a human, and I can't even figure out
what the size change is supposed to be based on, other than "a different
amount of space." Your code will instruct the application as to how to
define "different" in each case.

Signature

HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

>I am still somewhat wet behind the ears with .net 2.0. I'm creating a
> program for my helpdesk to assist in some common stuff we have to do,
[quoted text clipped - 7 lines]
>
> Thanks in advance
TheVillageCodingIdiot - 06 Sep 2007 15:00 GMT
Im sorry about that. I mean that each tab needs a different amount of
area in the form. Like the active directory tab has to display alot
more info such as group memberships, email addresses, and other
properties for that user, where the netsend tab doesnt need nearly as
much area to display all the objects in there. I just have a listbox,
text box, and a few buttons.
Kevin Spencer - 07 Sep 2007 12:25 GMT
I understood that. What I meant was, there's no way for the TabControl or
Form class to "automatically" know what size a given Control will be. It has
to be coded by you into the app.

Signature

HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

> Im sorry about that. I mean that each tab needs a different amount of
> area in the form. Like the active directory tab has to display alot
> more info such as group memberships, email addresses, and other
> properties for that user, where the netsend tab doesnt need nearly as
> much area to display all the objects in there. I just have a listbox,
> text box, and a few buttons.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.