views:

11

answers:

0

I'm creating dynamic controls in a Form and I made a static button to add fields within a panel. When fields are added this button is relocated to be underneath these added lines. But when the button reaches the low end of the panel (having autoscrolling set to true) it disappears and scrolling becomes infinite downwards. So this behavior always works fine when it hasn't reached the panel's bottom, but when having it has been reached, scrolling is enabled and thus creates this problem.