Results 1 to 3 of 3

Thread: [RESOLVED] Trying to understand Shadowing Properties

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    North Texas
    Posts
    70

    Resolved [RESOLVED] Trying to understand Shadowing Properties

    I have created a new usercontrol. My usercontrol contains several other controls like labels, buttons and so on ...

    When I set the Font property of the usercontrol I want that font property value to propagate down to the child controls.

    Can I do this with the "Shadows" declaration?
    Thanks,
    David

    How much deeper would the ocean be if sponges didn't grow there?

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Trying to understand Shadowing Properties

    no... you would just have a Font property on your user control... which is sounds like you've got.
    Now, in the set, you can loop through all child controls and set their font property with the new value...

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    North Texas
    Posts
    70

    Re: Trying to understand Shadowing Properties

    Thanks, Techgnome!
    Thanks,
    David

    How much deeper would the ocean be if sponges didn't grow there?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width