Absolute location from a frame in a form


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Absolute location from a frame in a form

  1. #1
    Alban GOBIN Guest

    Absolute location from a frame in a form


    I've some trouble with location of controls.

    I know it seems stupid but I don't manage to define .left and .top properties
    of a control from .left and .top properties of a form because the control
    is placed into a frame or picturebox.

    Any help would be appreciated.

    Thanks in advance.

    Alban GOBIN

  2. #2
    Mort Guest

    Re: Absolute location from a frame in a form

    Alban,

    Have you tried looping through the control's container property, until the
    container is the form, adding all the lefts as you go?

    Mort


    "Alban GOBIN" <lgobin@brutele.be> wrote in message
    news:39aa525e$1@news.devx.com...
    >
    > I've some trouble with location of controls.
    >
    > I know it seems stupid but I don't manage to define .left and .top

    properties
    > of a control from .left and .top properties of a form because the control
    > is placed into a frame or picturebox.
    >
    > Any help would be appreciated.
    >
    > Thanks in advance.
    >
    > Alban GOBIN




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center