我知道我可以做.Location = new Point(x,y)但是如何加上或减去严格X或Y坐标的值呢?
这样的东西?
lblTester.Location.X = lblTester.Location.X + 100
答案 0 :(得分:0)
lblTester.Location = new Point(lblTester.Location.X + 100, lblTester.Location.Y)
答案 1 :(得分:0)
olaf建议应该起作用,这也应该有效:
lblTester.Top += 100 'Move Down
lblTester.Top -= 100 'Move Up
lblTester.Left += 100 'Move Right
lblTester.Left -= 100 'Move Left