It was intended to use an abstract user control class to extract public functions, which would make it easier to work with controls inherited from it, but found that inherited controls were not designed to work with the designer, and that the VS designer would construct the controls, and abstract classes could not be instantiated. The original base class was designed with the following:
public partial class OneDataBaseUC : UserControl {        PUBLIC ONEDATABASEUC () { initializecomponent (); } public abstract bool canedit { get; set; } public abstract void init (); public Abstract void savevalue (String outkeyid); public abstract void deletevalue (String outkeyid); public abstract void clearcontrolvalue (); Public abstract sTring modulename { get; set; } public abstract void showvalue (String outkeyid); }
The inheritance controls are as follows
Public partial class Basicuserrolesuc:onedatabaseuc {public basicuserrolesuc () {Initialize Component (); } }
Result designer Open Basicuserrolesuc will error, visible ONEDATABASEUC can not be abstract, of course, if you do not need designer design is no problem
Controls that inherit from an abstract class cannot use the designer