Get control's absolute/screen left/top?

  • Thread starter Thread starter bhc
  • Start date Start date
B

bhc

hi all-

how can i retrieve the screen position of a control on a form? i don't
want the answer of "check form's top property + control's top
property", if i can get away with it - i'm particulary interested in a
control that can be embedded (in theory) an infinite number of levels
deep into child controls. i suppose i can always loop through the
..Parent/.ParentForm property until it's no more, but i was hoping for a
better answer...

thanks in advance.
 
bhc said:
hi all-

how can i retrieve the screen position of a control on a form? i don't
want the answer of "check form's top property + control's top
property", if i can get away with it

Control.PointToScreen.
 
Back
Top