获取区域内控件 Contorls[int index]并设置起大小

来源:互联网 发布:网络阅卷y100edu 编辑:程序博客网 时间:2024/06/14 08:04
Button btn=this.Contorls[10] as Button;//获取区域内控件,返回Contorl返回Button类型btn.Size=new Size(12,13);//设置大小btn.Location=new Location(12,13)//设置坐标

原创粉丝点击