我尝试了以下代码:
this.balancePanel.Location.X = this.optionsPanel.Location.X;
Run Code Online (Sandbox Code Playgroud)
在程序运行时更改我在设计模式下创建的面板的位置但它返回错误:
Cannot modify the return value of 'System.Windows.Forms.Control.Location' because it is not a variable
Run Code Online (Sandbox Code Playgroud)
所以问题是我该怎么做?