Results 1 to 3 of 3

Thread: problem with setting form height dynamically [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2002
    Location
    South Africa
    Posts
    105

    problem with setting form height dynamically [RESOLVED]

    Hi there

    Sorry about another basic question, but it is not working as I expect.

    I am adding controls to a form dynamically, from top to bottom. I want to resize the form so that it extends slightly below the last control. I am trying to do this by taking the top of the last control added, adding the height of the control, adding 50 pixels or so, and making this equal to the height of the form - basically like this:

    VB Code:
    1. Me.height = LastControl.top + LastControl.height + 50

    This does not work though, it cuts off some of the last control. Any ideas how to make this work?

    Many thanks

    langals
    Last edited by langals; May 11th, 2005 at 08:05 AM. Reason: Resolved

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