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:
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




Reply With Quote