Get control's absolute/screen left/top?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bhc

    #1

    Get control's absolute/screen left/top?

    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.

  • Larry Lard

    #2
    Re: Get control's absolute/screen left/top?


    bhc wrote:[color=blue]
    > 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[/color]

    Control.PointTo Screen.

    --
    Larry Lard
    Replies to group please

    Comment

    • bhc

      #3
      Re: Get control's absolute/screen left/top?

      wow. might have helped if i'd read the description of that property,
      huh? thanks larry.

      Comment

      Working...