>I've built a control class, and I need to I need to know the exact coordinates of the control with respect to the form it is placed on. The only time when this is a problem, is when the control is placed in a container class, and then an object of that class is placed on the form. That would require a "This.Parent.Left" and "This.Parent.Top". Since I don't know how many containers there might be above my control, is there a way to just get it's position relative to the form it is on?
>
>That question is as clear as mud huh? Any help?
>Joe
Use a loop and keep looping until the base class of the object is a form.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer