winforms - C# change location of controls inside FlowLayoutPanel -


i using flowlayoutpanel have relative location controls. change location of control inside flowlayoutpanel. when location, dont mean control1 before control2 or - mean if got 2 controls, lets label , combobox - combobox's height 21, label's height 13 , flowlayoutpanel's height 21 also. want put label in vertical middle of flowlayoutpanel - ((21-13)/2) top. dont want specific vertical middle want general solution.

you set top margin of label (containerheight-labelheight)/2


Comments