Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inheriting from mmBrokenRulesForm
Message
De
29/01/2004 16:54:12
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Inheriting from mmBrokenRulesForm
Divers
Thread ID:
00872073
Message ID:
00872073
Vues:
52
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
Fil
Voir

Click here to load this message in the networking platform