prettitoni
Programmer
Hi there.
I've been struggling with this for a bit now and it might just be a quick algorithm and I'm missing something. I'm using VC++ 2005. I have 5 panels (all the same size) on a windows form and I want them positioned across the width of the form. I want one panel on the leftmost side, one panel on the rightmost side and the remaining 3 panels evenly distributed in between. The number of panels may change so I want to do this in a flexible way. Can someone please help me with the algorithm?
Thanks.
I've been struggling with this for a bit now and it might just be a quick algorithm and I'm missing something. I'm using VC++ 2005. I have 5 panels (all the same size) on a windows form and I want them positioned across the width of the form. I want one panel on the leftmost side, one panel on the rightmost side and the remaining 3 panels evenly distributed in between. The number of panels may change so I want to do this in a flexible way. Can someone please help me with the algorithm?
Thanks.