msmeth
10-16-2006, 05:14 PM
Hi everyone.
Please excuse the cross-post. I accidentally posted this in the Legacy VB section, but I'm actually using .NET.... :rolleyes:
Anyway, here goes:
I have 5 panels on a form (this number can vary but the size of all the panels are the same) and I need to position them across the top of my windows form. The panels were created programmatically and I am positioning them via code also to allow for resizing.
I need one panel in the leftmost corner, one in the rightmost corner, and the remaining panels evenly spaced in between those two. I can't figure out an algorithm for this and am really hoping one of you can help me out. Thanks in advance.
Please excuse the cross-post. I accidentally posted this in the Legacy VB section, but I'm actually using .NET.... :rolleyes:
Anyway, here goes:
I have 5 panels on a form (this number can vary but the size of all the panels are the same) and I need to position them across the top of my windows form. The panels were created programmatically and I am positioning them via code also to allow for resizing.
I need one panel in the leftmost corner, one in the rightmost corner, and the remaining panels evenly spaced in between those two. I can't figure out an algorithm for this and am really hoping one of you can help me out. Thanks in advance.