当我们要移动控制项 (Control) 或表单 (Form) 时,很多人习惯这样写:
frmCustomer.Left = frmCustomer.Left + 100
frmCustomer.Top = frmCustomer.Top + 50
但是若使用 Move Method ,可以加快 40%:
frmCustomer.Move frmCustomer.Left + 100, frmCustomer.Top + 50
- 还没有人评论,欢迎说说您的想法!
frmCustomer.Left = frmCustomer.Left + 100
frmCustomer.Top = frmCustomer.Top + 50
但是若使用 Move Method ,可以加快 40%:
frmCustomer.Move frmCustomer.Left + 100, frmCustomer.Top + 50