问题
Hi currently I have a windows form like this:
In this form I always have the ten panles and hidde these as acording i need they. For example if I have an object list with seven values I hidde panel 8,9,10 but this way is not eficient because the size of my list always change maybe sometime I will have a list with 13 panels and in this static interface I only hava 10 panels
I want to get better this form. the new windows form is this:
Now I want to draw the same yellow panels in the right side of the form but dinamicly acording to the size of my object list something like this
回答1:
Have a look at FlowLayoutPanel
and TableLayoutPanel
来源:https://stackoverflow.com/questions/61355336/draw-dynamics-panels-in-a-windows-form-c-sharp