Is it possible to align a series of labels / text field vertically using a flowlayoutpanel?

I would like to align as

label1 TextBox1
label2 TextBox2
label3 TextBox3

I set FlowDirectionin TopDown but how to align label1with TextBox1the horizontal?

+3
source share
3 answers

Yes you can do it. You must remove the anchors of each control. In FlowLayoutPanel, no bindings mean average vertical alignment. Hope this helps.

+13
source

RightToLeft TopBottom FlowLayoutPanel FlowBreak=True .
, @Francisco, Anchor=None , .

Labels and text fields aligned in FlowLayoutPanel

+3

FlowLayoutPanel does not support this behavior. However, you can achieve the same result if you group each TextBox label / command, for example. their own panel and then set FlowDirection to TopDown

+1
source

Source: https://habr.com/ru/post/1718855/


All Articles