|
-
Feb 20th, 2013, 11:18 PM
#1
[RESOLVED] Split container - issue with extra space when the window is resized
Hi,
First of all let me show you the visual example of my issue.

I am using a SplitContainer for separating the window to two parts. The left one contains the browser. And the right contains the controls. But the issue is, when the window is normal size the layout is perfect. But when Maximized, the right pane has some extra space !
How would I clear the issue so that the right pane would embed the TabControl without any extra spaces in between ? I tried fiddling with properties, but couldn't find anything useful. Probably, it's something simple that I am unaware of! :P
Thanks in advance..
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Feb 20th, 2013, 11:23 PM
#2
Re: Split container - issue with extra space when the window is resized
Judging by the fact that we can see the top of a Button at the bottom of your second screen shot, I doubt there is any actual extra space. You've probably just configured the contents in correctly. Is that TabControl inside some other container or is it directly in Panel2 of the SplitContainer? If it's the latter then you should probably be setting its Dock property to Fill.
-
Feb 20th, 2013, 11:33 PM
#3
Re: Split container - issue with extra space when the window is resized
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Feb 21st, 2013, 12:05 AM
#4
Re: Split container - issue with extra space when the window is resized
This has nothing to do with the SplitContainer. This is simply about resizing and reflowing controls within a container when that container is resized. If you expect a control to resize with its parent then you use the Dock and Anchor properties accordingly. If you expect those GroupBoxes to stretch and shrink as the TabControl stretches and shrinks then you have to set the Anchor properties so that they are anchored to both sides. That would be the same if the TabControl was directly on a form. Likewise, if you expect the controls inside the GroupBoxes to stretch and shrink when the GroupBoxes do then you have to set their Anchor properties too. You might want to follow the CodeBank link in my signature and check out my thread on Dock & Anchor.
-
Feb 21st, 2013, 01:05 AM
#5
Re: Split container - issue with extra space when the window is resized
THanks JM 
I played with the Anchoring and Docking and made the textboxes and some buttons to fill the rest of the space.
It's still a bit confusing on Docking & Anchoring! Should play with it to get more ideas. I think it's somewhat like the Relative positioning of parent and the Absolute positioning of its children, in CSS. :P
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Feb 21st, 2013, 01:13 AM
#6
Re: Split container - issue with extra space when the window is resized
There's nothing especially complex about Dock and Anchor. Dock allows you to push a control hard up against an edge of its parent. That's it. You can select one edge or all four edges. Anchor allows you to maintain a constant distance between an edge of the child and the adjacent edge of the parent. That's it. You've already got your menu docked to the top and your status bar docked to the bottom and I doubt that that confuses you.
-
Feb 21st, 2013, 01:22 AM
#7
Re: Split container - issue with extra space when the window is resized
 Originally Posted by jmcilhinney
There's nothing especially complex about Dock and Anchor. Dock allows you to push a control hard up against an edge of its parent. That's it. You can select one edge or all four edges. Anchor allows you to maintain a constant distance between an edge of the child and the adjacent edge of the parent. That's it. You've already got your menu docked to the top and your status bar docked to the bottom and I doubt that that confuses you.
Thanks
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|