UltraExpandableGroupBox and controls added at Run-Time
New DiscussionWe’ve run into a bit of a problem today.
We have a need to create UltraExpandableGroupBoxes at run time and add WinForms controls to them.
We need to do this because we do not know at design time how many Group Boxes we’ll need.
In code, we create the Ultra Expandable Group Box, and add a the Ultra Expandable Group Box Panel to it. Further down in our code, we add Win Forms controls to the Panel.
Once our code completes, and we “see” the form, we see the Ultra Expandable Group Box but NONE of the embedded controls.
As a test, we’ve tried adding a .Show() call to every added control at run-time. (That made no difference)
Insuring the controls we created at run-time didn’t go out of scope. (That made no difference)
In the Debugger, verified the Panel control had all of our child controls (5 were in Group Box #1, 20 were in Group Box #2)
We’ve verified the Visible attribute is set to true for the child controls, the Panel AND the Group Box – all are set to true.
Because the application is a Legacy app, we have a mixture of Windows Generic Controls and Controls purchased from Control Vendors like Infragistics. We even tried removing all controls but a Generic Windows Control. (That made no difference)
Any Suggestions?
Robert


