开发者

How to set control (windows control) position to some other control relative postion

开发者 https://www.devze.com 2023-02-19 10:48 出处:网络
I want to set control position relative to other control so when i make one control hide then other control move up like this.

I want to set control position relative to other control so when i make one control hide then other control move up like this.

Ex.

Label1

Label2

L开发者_如何转开发abel3

When i hide Label2 so output will be

Label1

Label3


You can use FlowLayoutPanel

Though, you might need to set the FlowDirection to TopDown

Just put those labels into the panel

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号