Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 580207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:26:54+00:00 2026-05-13T14:26:54+00:00

I’m experimenting with a plugin architecture for my company’s internal business system. I have

  • 0

I’m experimenting with a plugin architecture for my company’s internal business system. I have managed to read all .DLLs in a Plugin folder which implement a specific interface. What I am trying to figure out is the best method of communication between the “host” MDI parent application and forms that will be in the .DLLs which I intend to make MDI children.

Currently, I am returning just ToolStripMenuItem objects from the .DLLs to add to the MDI Parent. I’ve also tested that events wired in the .DLLs to the ToolStripMenuItems do propagate to the code in the .DLLs. I’ve also managed to return a Form object via the interface and open that form, as the Plugin folder is being “scanned”.

However, I am not clear how I would make these forms MDI children. Also, any other forms living in the .DLLs will also have to be MDI children. I created a VS 2008 Addin project just to see what’s going on, and it seems that the Addin accepts an Application object on which it adds to the ToolStripMenuItems and does other operations. The code to build the menu inside the .DLL. This is opposite of what I have done so far, where the MDI requests a ToolStripMenuItem from each .DLL and adds the returned object to its own menu.

Would designing my plugin architecture to accept an application object in the same manner the only way I could get forms to open as an MDI child? Am I asking for other, currently unknown to me, headaches by NOT passing in the application object to the .DLL?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:26:54+00:00Added an answer on May 13, 2026 at 2:26 pm

    A number of years ago we did something similar. How we handled it was by creating a couple of interfaces that were implemented by a PluginManager and the Plugins.

    The Plugin Manager implemented an interface similar to this:

        ''' <summary>
    '''The IPluginManager interface is implemented by whatever component manages your gui
    '''It provides a means for plugins to access GUI elements of the application
    ''' </summary>
    Public Interface IPluginManager
    
        ''' <summary>
        '''The MDIForm property allows the plugin to display itself
        '''inside of the application's main MDI form (ie.  plugin.form.mdiparent=mdiform)
        ''' </summary>
        ReadOnly Property MDIForm() As Form
        ReadOnly Property Toolbar() As ToolBar
    
        ''' <summary>
        '''Allows the plugin to request that the application's main menu be updated
        ''' </summary>
        ''' <param name="Menu">The menu to add to the main menu</param>
        Sub UpdateMainMenu(ByVal Menu As Menu)
    
        ''' <summary>
        '''Allows the plugin to request that the application's workspace toolbar be updated
        ''' </summary>
        ''' <param name="Buttons">the collection of toolbar buttons to add to the toolbar</param>
        Sub UpdateToolbarButtons(ByVal Buttons As ToolBar.ToolBarButtonCollection)
    
    End Interface
    

    The Plugins implemented this interface:

        ''' <summary>
    '''The IPlugin interface is implemented by all plugins
    '''It provides a standardized means for the pluginmanager
    '''to communicate with a plugin, without knowing the plugin explicitly
    ''' </summary>
    Public Interface IPlugin
    
        ''' <summary>
        '''Allows the plugin to be intialized first before it asked to run
        ''' </summary>
        Sub Initialize()
    
        ''' <summary>
        '''Allows the pluginmanager to register itself with the plugin
        '''so the plugin can listen to events from the pluginmanager
        ''' </summary>
        ''' <param name="PluginManager">A plugin manager that implements the IPluginManager interface</param>
        Sub RegisterPluginManager(ByVal PluginManager As IPluginManager)
    
        ''' <summary>
        '''Requests the plugin to run its functionality
        ''' </summary>
        Sub Run()
    
    End Interface
    

    Once the app starts up, the PluginManager finds all of the available plugins (sounds like you have this working already) and then instantiates each plugin, registering itself with each plugin. The PluginManager then Intializes and then Runs the plugin(s).

    On the plugin side, when the Plugin is Initialized or Runs (depending on your needs) you simply set the plugin form’s MDIParent property to the MDIForm provided in the IPluginManager interface. And Viola!

    It’s a pretty simple contract between the two that you can easily change or expand upon.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a text area in my form which accepts all possible characters from
I have an autohotkey script which looks up a word in a bilingual dictionary
I have an array which has BIG numbers and small numbers in it. I
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a small JavaScript validation script that validates inputs based on Regex. I
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.