This is silly and I should be able to figure it out.
I have a panel that is occupied by Form objects on demand. I would like the panel's width to match that of the occupying Form. The height of the panel should not change, however.
My problem is here.
When the Form is taller than the panel, scrollbars will appear. This is fine, I want the vertical scrollbar so that the entire Form may be viewed. The problem is; since the vertical scrollbar appears over the Form, the panel adds a horizontal scrollbar so that one may see the portion of the Form that the vertical scrollbar has overlapped.
Is there a way to counter this effect? As in, automatically resizing the width of the panel to accomodate the space the vertical scrollbar takes.
I have been at this for around 40 minutes and feel I am running myself in circles. Thanks for any help supplied.




Reply With Quote