Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I already have a generic winforms application project but i want to create a special case project adding specialized features on top of the old one and at the same time, i want all enhancements/versioning done on the old project to be used by the new project. I still want the develop and improve application irregardless of the functions I have added to the new one.

What I have tried:

I was thinking of visual inheritance making some of the panels public so I can add other controls and functions.

Or is it possible I could make it like a plugin?
Posted
Updated 16-Apr-18 17:24pm
Comments
BillWoodruff 16-Apr-18 21:27pm    
You asked the same question April 6: what was wrong with the answers you got ?

1 solution

If I understand your question correctly, you could embed the current functionality in a control in some 'base' class. This would be the class that the current application would use. After that you could inherit an enhanced class which would implement new functionality to be used in a new application. The classes could be located in an assembly that is referenced from both applications. Consider the following

In MyCustomDll:
- Class MyPanel : Panel, contains current functionality
- Class MyEnhancedPanel : MyPanel, contains new functionality

In the old application
- references MyCustomDll, uses MyPanel

In a new application
- references MyCustomDll, uses MyEnhancedPanel
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900