I’ve got a user control class that works fine, drawing, events firing and the works. When i programmaticly add it to a class that extends from Panel it disapears. I’ve checked around and the line that makes it disapear is the line where i go
panel.Controls.Add(myuserControl).
Without that line the control works just fine, does anybody know why it won’t show after the add? I’m currently doing the painting of the user control by overriding OnPaint, but the panel is using the default painting.
consult View=>OterWindows=>DocumentOutline and see if the controls is present in designer.
I intuit that your control is not disappears, but you don’t see it (consult
Location,Dock,Anchor, Visibility, BackColor properties after.Add), two different things.