Hello!
i want to add panels inside a panel and accordingly ie based on the no. of panels added decide the size of each..as in if i want to add to add 2 panels then itl be like 2 adjacent panels inside the main panel..
Help needed!!
Im a newbie in C#..

1 answers
To do that, you also need to decide on:
1. The maximum number of panels that can appear in a given row.
2. The number of pixels between the edges of each panel.
3. If the total number of child panels is not an exact multiple of #1 above, how you're going to space out the remaining panels in the final row.
Here's a possible way of doing this where the parent panel is referred to as 'parentPanel' and the child panels have been placed in an array, 'panels', so you can easily refer to them in other code.
In the case of #3 above, I've assumed that any remaining panels will be the same size as the others and will be arranged from the left of the final row using the same spacing as the rest (i.e. as you might lay out playing cards):
answered one year ago by:
17279