首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

C# 中如何实现按钮定位

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

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)));

热点排行