wyrd
Senior Contributor
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).
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).