Tôi có một điều khiển flowlayout trong winforms, tôi đã thiết lập hướng dòng chảy của nó để TopDown nhưng nó giữ thêm điều khiển từ trái sang phải, autoscroll cũng được đặt thành true.kiểm soát flowlayout giữ thêm kiểm soát theo hướng sai trong winforms
flowLayoutPanel1.Controls.Clear();
Label labelInput = new Label();
ListBox listBoxNewInput = new ListBox();
//Initialize label's property
labelInput.Text = " #" + Convert.ToInt32(sequence);
labelInput.AutoSize = true;
//Initialize textBoxes Property
listBoxNewInput.HorizontalScrollbar = false;
listBoxNewInput.Items.Add(efforts);
//Add the newly created text box to the list of input text boxes
inputTextBoxesList.Add(listBoxNewInput);
//Add the labels and text box to the form
flowLayoutPanel1.FlowDirection = FlowDirection.TopDown;
flowLayoutPanel1.Controls.Add(labelInput);
flowLayoutPanel1.FlowDirection = FlowDirection.TopDown;
flowLayoutPanel1.Controls.Add(listBoxNewInput);
những gì tôi muốn là nếu họ không phù hợp theo chiều dọc nó nên thực hiện một thanh cuộn, nhưng nó đặt chúng ở bên phải – PUG