Point p = new Point(this.DesktopLocation.X +8);
this.DesktopLocation= p;//桌面位置
if(p.X==(this.DesktopBounds.Width))
{
this.Dispose();
}
this.DesktopLocation= p;//桌面位置
if(p.X==(this.DesktopBounds.Width))
{
this.Dispose();
}
{
this.Location.Y=0;
}
报错:无法修改“System.Windows.Forms.Control.Location”的返回值,因为它不是变量
{
this.Location = new Point(this.Location.X,0);
}