Draw dynamics panels in a windows form c#

﹥>﹥吖頭↗ 提交于 2020-04-30 06:26:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!