问题描述
我有持有的FlowLayout面板和面板的FlowLayout持有一堆控件组框。我设置的FlowLayout面板与上级对接。因为我不知道有多少的控制将是在面板上,我设置了组合框自动调整为true,autosizemode增长和收缩。当我做这组框缩小,如果它是空的。我需要的标题,所以我不能删除组框。任何人都知道为什么会这样?
I have a groupbox that holds a flowlayout panel and the flowlayout panel holds a bunch of controls. I set the flowlayout panel to dock with the parent. Since I don't know how many controls will be in the panel, I set the group box autosize to true and autosizemode to grow and shrink. When I do this the groupbox shrinks as if it is empty. I need the caption so I can't remove the groupbox. Anyone know why this is happening?
推荐答案
有什么,从萎缩到什么停止FlowLayoutPanel的。你至少得的AutoSize属性设置为True为好。
There's nothing that stops the FlowLayoutPanel from shrinking to nothing. You'll at least have to set its AutoSize property to True as well.
这篇关于组框里面一个的FlowLayout面板,并自动调整大小=真收缩就像它为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!