Click to See Complete Forum and Search --> : How to to resize two TabControls?
AMON
February 17th, 2003, 05:18 PM
I have two TabControls on a single C# Form. One TabControl on above the other one like so...
TabControl1
Resizer
TabControl2
Between both TabControls, I want to give the user the ability to resize both controls by moving a single bar. The window should stay the same size.
Do I use a resize window? Or a Splitter? Or something else? Any code examples would also be appreciated.
Thanks!
- Adrian
pareshgh
February 17th, 2003, 05:25 PM
hi
I have attached the ZIP file as a sample may be you like the idea !!!
comments welcome. and i think splitter is a way to do ..
:o
:D
-Paresh
AMON
February 17th, 2003, 06:21 PM
Hi Paresh,
That's great! How did you get the splitter to not stick to the right, left, top, or bottom?
When I add a Splitter control, it only wants to stick to one side of the window. I can't get it to stay in the middle. Any suggestions?
(And thank you very much for the example!)
- Adrian
pareshgh
February 17th, 2003, 06:24 PM
no there are adding sequences...
you have to add tabcontrol first, dock it to left, add splitter (which will automatically dock it to left) and FYI add the another tabcontrol docking fill.
by docking i mean that Dock property to
DockStyle.Fill or Left etc..
Paresh
AMON
February 19th, 2003, 12:03 PM
Dear Paresh,
You are correct! The adding sequence did effect the priority of the layout! This time it worked great!
You are a genius! Thank your for all your help!
Best wishes,
- Adrian :)
pareshgh
February 19th, 2003, 12:05 PM
never mind. i am glad u got it working...
:D
Paresh
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.