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 
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist