简体   繁体   中英

How can I keep Buttons at the same position below a TableLayoutPanel?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM