Custom control disappears when added to panel
I have a user management class that works fine, draws, fires events and works. When I programmatically add it to a class that exits Panel, it disappears. I checked around and the line that makes it faulty is the line I'm going on
panel.Controls.Add(myuserControl).
Without this line, the control works fine, does anyone know why it won't show up after adding it? I am currently painting a custom control overriding OnPaint, but the panel uses the default drawing.
+2
a source to share
2 answers