I would like to align like this
label1 TextBox1
label2 TextBox2
label3 TextBox3
I set FlowDirection
to TopDown
but how can I do to align label1
with TextBox1
horizontally ?
Yes, you can do it. You have to remove the anchors of each control. In a FlowLayoutPanel, no anchors means middle vertical alignment. I hope it helps.
Use RightToLeft
instead of TopBottom
in the FlowLayoutPanel and set FlowBreak=True
to each TextBox.
To align vertically Labels and TextBoxes, set Anchor=None
on all of them (as @Francisco says below)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With