I have a very basic "base" usercontrol with some added properties. When I inherit from the base usercontrol and add some buttons to it in the designer everything seems to be fine. But when I build my project all of my buttons disappear and the layout restores back to the original base usercontrol. What am I doing wrong here?
public partial class BaseUserControl : UserControl
{
public BaseUserControl()
{
InitializeComponents();
}
public bool CanClose
{
get;
set;
}
}
public partial class InheritedUserControl : BaseUserControl
{
public InheritedUserControl()
{
InitializeComponents();
}
}