wyrd
Well-known member
Odd question but in Java theres 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 Im talking about, but here we go..
Imagine two buttons at the bottom of a form, both taking of 50% of the forms width. If you remove a button, the remaining button will automatically fill 100% of the forms width. If you add a button, theyll all take up 33.3333% (or whatever it is) of the forms width. If you add a 4th theyll all take up 25% of the forms width. When Im 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? Im hoping for an easy solution so I dont 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).
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 Im talking about, but here we go..
Imagine two buttons at the bottom of a form, both taking of 50% of the forms width. If you remove a button, the remaining button will automatically fill 100% of the forms width. If you add a button, theyll all take up 33.3333% (or whatever it is) of the forms width. If you add a 4th theyll all take up 25% of the forms width. When Im 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? Im hoping for an easy solution so I dont 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).