Get control's absolute/screen left/top?

Tech-Archive recommends: Speed Up your PC by fixing your registry



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.

.



Relevant Pages

  • Re: Creating variables in a loop!
    ... Any hints on how I might be able to retrieve the boolean state of each ... You can retrieve them the same way: loop through the Cells collection ... and find the first control inside that cell. ... It's "just" a Control, so you will have to cast it to a CheckBox. ...
    (microsoft.public.dotnet.framework.aspnet)
  • How to use Internet transfer control asynchronously
    ... I would like to use the 'execute' method of the Internet transfer control to ... If anyone knows how to retrieve files with this method, ... Private Sub Inet1_StateChanged ... specified host computer. ...
    (microsoft.public.vb.general.discussion)
  • How to use Internet transfer control asynchronously
    ... I would like to use the 'execute' method of the Internet transfer control to ... If anyone knows how to retrieve files with this method, ... Private Sub Inet1_StateChanged ... specified host computer. ...
    (microsoft.public.vb.controls.internet)
  • How to use Internet transfer control asynchronously
    ... I would like to use the 'execute' method of the Internet transfer control to ... If anyone knows how to retrieve files with this method, ... Private Sub Inet1_StateChanged ... specified host computer. ...
    (microsoft.public.vb.6.webdevelopment)
  • How to use Internet transfer control asynchronously
    ... I would like to use the 'execute' method of the Internet transfer control to ... If anyone knows how to retrieve files with this method, ... Private Sub Inet1_StateChanged ... specified host computer. ...
    (microsoft.public.vb.database)