Custom Controls
-
I'm trying to write a sliding panel custom control. As regards the component sliding etc it is all ok. However, during design mode the V.S. doesn't let me place controls inside the panel. It places them on top of the panel, not into it. Can any one help out on this. Best Regards:cool:
-
I'm trying to write a sliding panel custom control. As regards the component sliding etc it is all ok. However, during design mode the V.S. doesn't let me place controls inside the panel. It places them on top of the panel, not into it. Can any one help out on this. Best Regards:cool:
Try deriving your custom control class from System.Windows.Forms.Panel instead of System.Windows.Forms.UserControl Hope this is what you are looking for... Greatings, Johnny
-
I'm trying to write a sliding panel custom control. As regards the component sliding etc it is all ok. However, during design mode the V.S. doesn't let me place controls inside the panel. It places them on top of the panel, not into it. Can any one help out on this. Best Regards:cool:
Did you set
ControlStyles.ContainerControl
style on your control? (usingControl.SetStyle()
) Regards, mav