Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inheritance of MM.Net forms to Intermediate Classes
Message
From
11/03/2008 11:45:31
Frank Dolinar
Mi House of Representatives
Michigan, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Inheritance of MM.Net forms to Intermediate Classes
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
MS SQL Server
Miscellaneous
Thread ID:
01300917
Message ID:
01300917
Views:
69
Goal: Replicate standard MM Forms in a custom project so that we can customize functionality w/o needing to recompile the MM.Net Framework

Problem: Data Binding stops functioning

Attempted:

Created a new C# Project in our solution. Copied the following files from the MM.Net install folders: mmBusinessBaseForm.cs, mmBusinessForm.cs, mmEntityBusinessForm.cs, mmMaintenanceForm.cs (plus associated .resx files).

Renamed each file to have a 3 letter prefix "MHR" to represent a custom class and modified the each source code file to use these new names. Example: The mmMaintenanceForm.cs now has filename MHRmmMaintenanceForm.cs and the class and constructor has been renamed MHRmmMaintenanceForm as well.

So we have a C# project with a MHRmmMaintenanceForm which inherits from a MHRmmBusinessForm which inherits from a MHRmmEntityBusinessForm which inherits from a MHRmmBusinessBaseForm which inherits from the 2 interfaces of ILBaseForm, ImmBusinessForm as before. The namespace was left as OakLeaf.MM.Main.Windows.Forms but changing it to a namespace within our solution's namespace made no difference.

No other changes were made to the MM source code files listed above.

When I do this and inherit my form from the MHRmmMaintenanceForm, MM data binding stops working. Simply changing the inheritance back to mmMaintenanceForm restores MM data-binding functionality.

Any idea on why this may be happening? Is there a best practice for how to customize the MM forms included in the framework? Should we take a different approach?

As usual, any help much appreciated.
-Frank
Next
Reply
Map
View

Click here to load this message in the networking platform