Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get the Top and Left property of the ActiveX control

Status
Not open for further replies.

EricsonJ

Programmer
Mar 3, 2002
44
US
I am programming a Form Control which acts just like the Form of VB. I want the Form Control I programmed has the resize function. Currently, I can only resize the control to the East and South. I found that the UserControl only has Width and Height property, I think this is reasonable because that in the control itself, the Left and Top should be 0. The problem is that I want to get the control's Top and Left value in its container, how can I do that?

 
To reference the value of the usercontrol Top and Left location on it's container from the code inside the control, use these properties:

Extender.Left
Extender.Top


Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top