Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / July 2007

Tip: Looking for answers? Try searching our database.

Anchoring question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Elmo Watson - 06 Jul 2007 23:15 GMT
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!)?
Bob Powell [MVP] - 07 Jul 2007 10:15 GMT
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.

Signature

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.

> I've got 2 groupboxes (with listboxes inside), and between those two
> groupboxes, there are two small buttons, for moving stuff back and forth
[quoted text clipped - 11 lines]
> 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!)?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.