In C#, how is the best way to position 2 Buttons
at the same distance below a TableLayoutPanel
when a Form
is resized as well as the same distance from the right of the Form
?
Here is an image:
The TableLayoutPanel
has the Anchor
set to Top, Bottom, Left, Right
.
Is there a specific Form Control
that I should use, or does this need to be done via code in the Form's
resize event?
如果面板正在拉伸(锚点: Left, Right, Bottom, Top
),则应将按钮的锚点设置为“ Bottom, Right
以便在调整窗体大小时基本上保持在同一位置。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.