Hello
I have added x amount of controls to an UltraGroupBox control.
The controls extend past the height of the UltraGroupBox.
How do I enable the UltraGroupBox to scroll down to the child controls
which aren't visible?
I am using the UltraGroupBox as it has Begin/EndUpdate for the dynamic
runtime creation of child controls on the UltraGroupBox control.
Regards,
Simon
Just in case someone is still looking for the solution.
Simon's idea to put the groupbox inside the panel worked brilliantly.
Just size the group box to be big enough to hold all the inner controls, and the panel will take care of the scroll bars.
Hello Matt
I actually did it the other way around. I didn't have time to respond to the forum with the solution I came up with.
I placed a GroupBox inside of a Panel. I set the Panel to AutoScroll and then via code expanded the height of
the GroupBox as I add controls to the GroupBox. The GroupBox expands and then the Panel creates the scrollbar
based on the height of the GroupBox.
Thanks for the advice though!!!
Simon,
One approach I can think of would be to place a .NET Panel inside of the GroupBox, set its Dock to Fill and AutoScroll property to True, and then add all the child controls to this panel so that the panel will handle the scrolling for you.
-Matt