Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Inheriting from mmBrokenRulesForm
Has anyone tried to create a form class derived from mmBrokenRulesForm? I've got no problem setting up the inheritance, but I get errors trying to edit my derived form in VS. So, just for kicks I tried opening mmBrokenRulesForm and received similar errors.
I've seen this before when a form does not have a parameter-less constructor. I'm assuming that since VS can't provide any parameters at design time, the form can't be opened in the designer. mmBusinessForm only has one exposed constructor, and it takes a BizRule parameter. In my forms when I have constructors that take parameters, i keep one protected parameter-less constructor intact. That way it's still there for VS, but that constructor can't be called in code. I don't know if this is why I can't edit mmBrokenRulesForm-derived forms, but it's my guess.
Has anyone else tried this? Did it work for you?
Thanks,
-Nate
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement