wyrd Posted November 30, 2002 Posted November 30, 2002 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). Quote Gamer extraordinaire. Programmer wannabe.
*Gurus* divil Posted November 30, 2002 *Gurus* Posted November 30, 2002 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.