GridBagLayout Equiv?

wyrd

Senior Contributor
Joined
Aug 23, 2002
Messages
1,405
Location
California
Odd question but in Java there's a layout manager which is called GridBagLayout. It pretty much works like an HTML table to put it in simplistic terms.

If anyone is even remotely familiar with it, is there any sort of equivelent in VB.NET? I know they have Anchoring and Docking now.

Sort of hard to explain what I'm talking about, but here we go..

Imagine two buttons at the bottom of a form, both taking of 50% of the form's width. If you remove a button, the remaining button will automatically fill 100% of the forms width. If you add a button, they'll all take up 33.3333% (or whatever it is) of the form's width. If you add a 4th they'll all take up 25% of the form's width. When I'm talking adding and removing I mean dynamically as the program is actually running.

Is there anything that will allow me to do this? Maybe a funky combination of anchor and docking? I'm hoping for an easy solution so I don't have to actually program it out (as you once had to do for most controls before they made it easy with anchoring and docking, heh).
 
I belive you'll have to program this functionality yourself, although sometimes you can achieve similar effects with inventive use of panels and docking/anchoring.
 
Back
Top