dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How to access properties Top and Left

  1. #1
    Pädi Guest

    How to access properties Top and Left


    While programming my ActiveX-Control I have no access to properties top and
    left. But for my Control is important to move on a Form (like full on the
    left, etc..). How I can get access to this both properties while runtime
    ActiveX-Control-Code?

  2. #2
    Michael Culley Guest

    Re: How to access properties Top and Left


    Pädi,

    Try this in you usercontrol

    UserControl.Extender.Left = UserControl.Extender.Left - 15

    Note that the extender object may vary between containers, say if it is in
    IE you might not have a left property. So you should always put on error
    resume next before it.

    Another option is to set the usercontrols Alignable property to try (when
    you are designing the usercontrol, not when it is on a form)

    Michael Culley

    "Pädi" <admin@luegisdorf.ch> wrote:
    >
    >While programming my ActiveX-Control I have no access to properties top

    and
    >left. But for my Control is important to move on a Form (like full on the
    >left, etc..). How I can get access to this both properties while runtime
    >ActiveX-Control-Code?



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