Button btn=this.Contorls[10] as Button;//获取区域内控件,返回Contorl返回Button类型
btn.Size=new Size(12,13);//设置大小
btn.Location=new Location(12,13)//设置坐标
获取区域内控件 Contorls[int index]并设置起大小
最新推荐文章于 2023-03-03 12:12:36 发布
Button btn=this.Contorls[10] as Button;//获取区域内控件,返回Contorl返回Button类型
btn.Size=new Size(12,13);//设置大小
btn.Location=new Location(12,13)//设置坐标