设置控件的位置不可使用 Location.x  或者Location.Y 来设置控件的位置 

以下是解决的方法:

       第一种方法:

          //控制一个控件的显示位置
            button1.Top = 100;
            button1.Left = 100;

 

  第二种方法:

            //给一个控件赋值 的两种方法
            button1.Location = new Point(500,500);

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2021-10-10
  • 2021-10-05
猜你喜欢
  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
相关资源
相似解决方案