读书人

C# 中如何实现按钮定位

发布时间: 2012-01-09 21:05:42 作者: rapoo

C# 中怎么实现按钮定位
我想把按钮放在最下面,可窗口最大化后就按钮就变成了中间了!怎么实现定位呢!

[解决办法]
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
[解决办法]
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));

读书人网 >C#

热点推荐