2

At design time I have a form with a FlowLayoutPanel. I can create buttons inside it with no problems. But when I tried to add a SplitContainer, nothing happens.

Later I will need to add a Splitcontainer inside another SplitContainer. So my user can choose the number of sections (panels) he wants to see in the form.

I'm trying this:

        SplitContainer spltcnt = new SplitContainer();
        spltcnt.Dock = DockStyle.Fill;
        spltcnt.Orientation = Orientation.Horizontal;
        spltcnt.SplitterWidth = 100;
        spltcnt.Visible = true;

        flwLayoutPanel.Controls.Add(spltcnt);
4

1 回答 1

0

您不能FlowLayoutPanel按照这个 SO 问题(以及其他问题)停靠。调整表单大小时,您将必须手动设置 s的and HeightWidthSplitContainer

于 2015-10-21T17:09:46.057 回答