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.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: