Click here to Skip to main content
15,899,314 members

Comments by Tim Norton (Top 1 by date)

Tim Norton 7-Jul-10 8:14am View    
Thanks for this suggestion. Part of it helped, combined with another reference, which I can not find to link to.
I cna now load 2 or more dll's dynamically
<pre lang="vb">Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       Dim StrAssembly As String = "CustomPlugin1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ef086aa3bcfa80b5"
       Plugin = System.Reflection.Assembly.Load(StrAssembly)
       Dim Instance As StandardPlugin.Cls_Main
       Instance = DirectCast(Plugin.CreateInstance("CustomPlugin1.Cls_Main"), StandardPlugin.Cls_Main)

       Instance.DoTest()
   End Sub




I am not having luck with the Interface as you cannot seem to use it for nested classes.
I also tried using a MustInherit class and mustoverride property but again became stuck with the nested classes.