Anchoring question

E

Elmo Watson

I've got 2 groupboxes (with listboxes inside), and between those two
groupboxes, there are two small buttons, for moving stuff back and forth
between the listboxes.

Generally, I have the 'anchoring concept' down - but here, it's giving me
problems. I don't really know if what I want is possible, but here it is

I need the groupboxes to grow equally, vertically and horizontally, based on
the size of the form sizing.
BUT - I need those two buttons (stacked vertically between the groupboxes)
to be in the same relative position, vertically, and horizontally, between
the two groupboxes

Is it possible to use anchoring to accomplish this, or am I going to have to
go back to the VB6 days of coding a resize event (blah!)?
 
B

Bob Powell [MVP]

Personally, I'd go for a custom layout engine. In cases where you need to
keep things centred or in a specific ratio anchoring and docking doesn't cut
it.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top