devxlogo

The Move Method is Faster

The Move Method is Faster

To move a control or form to a new location, you can set the Leftand Top properties to new values:

 frmCustomer.Left = frmCustomer.Left + 100 frmCustomer.Top = frmCustomer.Top + 50 

Using the Move method, however, is about 40 percent faster:

 frmCustomer.Move frmCustomer.Left + 100, frmCustomer._ Top + 50 

devx-admin

Share the Post: