Page 1 of 1
help with plugins
Posted: Sun Aug 12, 2012 5:22 pm
by XTechVB
i'm trying to make my app support plugins, but i cant figure out how, i already tried using reflection but i cant make it work.
what i need exactly is a plugin system that adds menu items to the main form's menustrip!
can someone help me?
Re: help with plugins
Posted: Sun Aug 12, 2012 6:18 pm
by muttley1968
If the plugins are developed by you then why not try Creating a folder all plugins are copped to this folder and on launcher of your program it checks this folder and ads a process.start event for each program and just make them pass paramters with each other
Re: help with plugins
Posted: Sun Aug 12, 2012 6:24 pm
by XTechVB
muttley1968 wrote:If the plugins are developed by you then why not try Creating a folder all plugins are copped to this folder and on launcher of your program it checks this folder and ads a process.start event for each program and just make them pass paramters with each other
i know how to add them to the menustrip.
the plugins are in dll format, and i need to execute them via the menustrip
Re: help with plugins
Posted: Sun Aug 12, 2012 6:47 pm
by mandai
You could make a function in the class library that returns a menu item.
There is some sample code here that shows how to load/call a function in a class library:
viewtopic.php?f=21&t=2527&p=15993#p15993