Change the location of an object programmatically

前端 未结 6 892
南笙
南笙 2020-12-01 12:19

I\'ve tried the following code:

 this.balancePanel.Location.X = this.optionsPanel.Location.X;

to change the location of a panel that I mad

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 12:46

    If somehow balancePanel won't work, you could use this:

    this.Location = new Point(127, 283);
    

    or

    anotherObject.Location = new Point(127, 283);
    

提交回复
热议问题