My problem is that a custom control "newA" that inherits from a base
custom control "baseA" is not displaying any contained controls - that
were not inherited - at run time, but displays them fine at design
I'll give a short example:
public class baseA: UserControl
//add datagrid in designer and set some properties.
public class newA: baseA
//add a second grid and some buttons next to the existing datagrid in
//programatically load second grid with data depending on records
selected on the first grid
public class main
//I put the newA control on my form programatically
Altough newA looks fine in the designer when the program is run only
the grid from baseA shows up. I found that the controls are actually
present and working after setting a breakpoint; they are simply not
visible (the visible property is true of course).
My base class is not abstract because then the designer doens't work
anymore (makes sense, just not handy). The inherited controls
contained within the base are perfectly usable when designing newA.
The grid from the base is fully functional.
I have found people having similair problem but no solutions.
All help is appreciated.