Problem in LoadPlugins in Application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • chandu

    Problem in LoadPlugins in Application

    Hai all,

    i am developing an applciation which loads all configuation plugins in
    MainForm when clicks on corresponding plugin button.

    let me explain :

    SomePlugin is a class library projects which contains 3 UserControls.Ev ery
    user control has its own functionality like save,clear,edit ....etc.

    i buit that SomePlugin Project for generation a .dll .

    In my MainApplication i had one folder called Plugins.i copied SomePlugin
    dll in that folder.

    In MainApplication if i click on a button i need to load the SomePlugin
    library dynamically and need to show that UserControl names as linkButtons
    in one panel.
    And if click on any of the Link i need to show that corresponding
    usercontrol in anther panel.

    If i have 5-6 Plugin applications and clicking one by one i need to unload
    active plugin form Memory and need to show current plugin.

    can any one help me please..

    thanking u ...










  • chandu

    #2
    Re: Problem in LoadPlugins in Application

    i want to load user controls ..
    "Vadym Stetsyak" <vadym_s@ukr.ne twrote in message
    news:%23hwVNC8D HHA.4048@TK2MSF TNGP02.phx.gbl. ..
    Hello, chandu!
    >
    If you want to unload assemblies from memory you have to load them into
    separate Application Domain.
    This link will help you (
    http://www.codeproject.com/csharp/Dy...ginManager.asp )
    cHai all,
    >
    ci am developing an applciation which loads all configuation plugins
    cin
    cMainForm when clicks on corresponding plugin button.
    >
    clet me explain :
    >
    cSomePlugin is a class library projects which contains 3
    cUserControls.E very
    cuser control has its own functionality like save,clear,edit ....etc.
    >
    ci buit that SomePlugin Project for generation a .dll .
    >
    cIn my MainApplication i had one folder called Plugins.i copied
    cSomePlugin
    cdll in that folder.
    >
    cIn MainApplication if i click on a button i need to load the
    cSomePlugin
    clibrary dynamically and need to show that UserControl names as
    clinkButtons
    cin one panel.
    cAnd if click on any of the Link i need to show that corresponding
    cusercontrol in anther panel.
    >
    cIf i have 5-6 Plugin applications and clicking one by one i need to
    cunload
    cactive plugin form Memory and need to show current plugin.
    >
    ccan any one help me please..
    >
    cthanking u ...
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    --
    Regards, Vadym Stetsyak
    www: http://vadmyst.blogspot.com

    Comment

    • Duggi

      #3
      Re: Problem in LoadPlugins in Application

      Hi Chandu,

      the link will help you loading an assembly dynamically,



      An assembly is loaded dynamically... (Assembly contains a control),
      other words control is accessible or loaded in to memory...

      Umm... Problem if single assembly contains multiple controls.....

      Thanks
      -Srinivas.


      chandu wrote:
      Hai all,
      >
      i am developing an applciation which loads all configuation plugins in
      MainForm when clicks on corresponding plugin button.
      >
      let me explain :
      >
      SomePlugin is a class library projects which contains 3 UserControls.Ev ery
      user control has its own functionality like save,clear,edit ....etc.
      >
      i buit that SomePlugin Project for generation a .dll .
      >
      In my MainApplication i had one folder called Plugins.i copied SomePlugin
      dll in that folder.
      >
      In MainApplication if i click on a button i need to load the SomePlugin
      library dynamically and need to show that UserControl names as linkButtons
      in one panel.
      And if click on any of the Link i need to show that corresponding
      usercontrol in anther panel.
      >
      If i have 5-6 Plugin applications and clicking one by one i need to unload
      active plugin form Memory and need to show current plugin.
      >
      can any one help me please..
      >
      thanking u ...

      Comment

      Working...