设置控件的位置不可使用 Location.x 或者Location.Y 来设置控件的位置
以下是解决的方法:
第一种方法:
//控制一个控件的显示位置 button1.Top = 100; button1.Left = 100;
第二种方法:
//给一个控件赋值 的两种方法 button1.Location = new Point(500,500);