Autosize for tabcontrol

  • Thread starter Thread starter TheVillageCodingIdiot
  • Start date Start date
T

TheVillageCodingIdiot

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

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

--
HTH,

Kevin Spencer
Microsoft MVP

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