General information
Category:
The Mere Mortals .NET Framework
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only