Hi,
I am working on a report where I have some textboxes inside a panel. The height of panel should decrease if some of those textboxes are not visible. As per your suggestion in another forum, I have set the height of the panel to minimum right after InitializeComponent() so it will grow to fit its content. It is working but report is inserting white space equal to panel's original height after it displays the panel. I have attached the image of report template. The panel is in green color. As you can see there is white space between panel and the next blue colored textbox which is outside the panel.
I am working on a report where I have some textboxes inside a panel. The height of panel should decrease if some of those textboxes are not visible. As per your suggestion in another forum, I have set the height of the panel to minimum right after InitializeComponent() so it will grow to fit its content. It is working but report is inserting white space equal to panel's original height after it displays the panel. I have attached the image of report template. The panel is in green color. As you can see there is white space between panel and the next blue colored textbox which is outside the panel.