DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Larry Leach Guest

    Que: How to lock down controls when using Visual Inheritance?

    Hi all,

    Does anyone know how to lock the positions of controls inherited from
    another form? That is, I want to inherit controls from a parent form, but
    reposition them on the child form (and have them stay put!).

    I can manually reposition the controls at run time, but as the number of
    controls increase this becomes a real nightmare to work with at design time.

    Thanks,

    -ldl-




  2. #2
    Paul Mc Guest

    Re: Que: How to lock down controls when using Visual Inheritance?


    G'day Larry,

    In the base form that you are inheriting from, modify the control declaration
    from Friend to: Protected Friend,Protected, or Public. Any of these seem
    to do the trick...

    Pretty well stuffed if you are inheriting a form from someone elses compiled
    package, I guess "8-(


    Hope this helps,
    Paul


  3. #3
    Larry Leach Guest

    Re: Que: How to lock down controls when using Visual Inheritance?

    I'm using Protected now (I also tried Public and Protected Friend) - these
    settings do let me rearrange the controls, but there is this confounded
    'shift' thing (which I consider a definite bug) that is driving me nuts.

    I'm not sure of all the scenarios, but often, making a change to either of
    the screens causes all of the inherited controls to revert to their
    positions on the base screen. This is really a problem for me (I'm making
    heavy use of the feature, three levels deep). I guess I will submit a bug
    report to Microsoft and hope for the best.

    Thanks for trying,

    -ldl-

    "Paul Mc" <paulmc@nospam.thehub.com.au> wrote in message
    news:3c0415b7$1@147.208.176.211...
    >
    > G'day Larry,
    >
    > In the base form that you are inheriting from, modify the control

    declaration
    > from Friend to: Protected Friend,Protected, or Public. Any of these seem
    > to do the trick...
    >
    > Pretty well stuffed if you are inheriting a form from someone elses

    compiled
    > package, I guess "8-(
    >
    >
    > Hope this helps,
    > Paul
    >




Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links