devxlogo

Access UserControl.left and UserControl.top

Access UserControl.left and UserControl.top

Question:
How can I access the usercontrol’s left and top properties from within the user control?

Answer:
Certain standard properties such as top and left are provided to a control by its container. These properties are exposed to the UserControl developer through the Extender object:

UserControl.Extender.Top

Note: These properties are intended for the client’s use. You should only read them, never change them.

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