Results 1 to 3 of 3

Thread: User control resize @ runtime

  1. #1

    Thread Starter
    Addicted Member Geoff Gunson's Avatar
    Join Date
    Jun 1999
    Posts
    241

    User control resize @ runtime

    Hi

    Is it possible for a control to determine it's size at runtime??

    Ie if it was just a normal form you could code something like:

    me.width = x
    me.height = y

    However I can't seem to find these properties for the user control.

    Any Ideaz

    CMD

    G

  2. #2
    New Member
    Join Date
    Jul 2001
    Location
    Regina,Saskatchewan
    Posts
    3
    I ran into a similar problem trying to launch "What's This?" help from a popup menu on my control. From what I have read several properties/methods are controlled by the container that holds the usercontrol instead of the usercontrol itself. Two of these are the height and width properties.

    To get these at runtime use the Extender object of the usercontrol (Usercontrol.Extender.Width). If you look up 'Extender object' in the VB help it says which properties/methods are controlled by the container (one of which is 'ShowWhatsThis', took me a few days to figure that one out as I'm still pretty new at this).

    David

  3. #3

    Thread Starter
    Addicted Member Geoff Gunson's Avatar
    Join Date
    Jun 1999
    Posts
    241
    Cheers M80

    G

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