Make sure the panel has the focus before you drop the control onto it. If you want to paste an existing control in a panel, cut it first and then select the panel and paste the control.
Charlotte Foust -----Original Message----- From: Stanislav Petko [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 2005 9:20 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET] Own Usercontrol with child controls inside Hello everybody. I created my own control (inherited form System.Windows.Forms.UserControl) named MiniInfo. It is acts something like a very small form (though it's not a form) ... I want to put another controls inside it even in design mode. So the designer attribute is: <DesignerAttribute("System.Windows.Forms.Design.ParentControlDesigner")> Everything is OK a it works as expected. When I place for example button on it in design mode it is there ... on that MiniInfo control - MiniInfo is parent of this button. But now I hane a Panel on MiniInfo (it is part of this control) and in design mode, when I drop a control on MiniInfo, I want it to be added into this panel - the panel will be the parent of dropped controls. I am not able to solve this. WHen I just drop a control on MiniInfo, it becomes a parent of this control automatically ant thus the button is behind that panel. I want to make the panel parent of dropped controls. Does anybody know how to achieve this? Thanks, Stano. =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorŪ http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com