User Control That Could Contain Controls Dragged On It At Design Time
I want to make a new control that acts like the Panel but with some other functionalities. What code do I need to make a control dragged onto it to be its child at design time Any help would be appreciated.
User Control That Could Contain Controls Dragged On It At Design Time
PsychoDarkStar
Decorate your user control with this attribute-
[Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))]
public class MyControl : UserControl
{
}
This works with VS.net 2005.
http://support.microsoft.com/default.aspx scid=kb;en-us;813450
Shaun Bowe