当我们要移动控制项 (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
原文转自:http://www.ltesting.net