so I want to go start using System.Reflection to load my dlls from a special folder as I never did this before and thought I should give it a try. now I'm wondering how to do this.
below I have my dll code and my form code
I need to know how to use the sub from my dll in my form if I use Assembly.LoadFrom
Public Class Class1 Public Sub msg(ByVal message As String) MsgBox(message) End Sub End Class
Option Strict On Imports System.IO Imports System.Reflection Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim path As String = Application.StartupPath & "/dlls/mydll.dll" If File.Exists(path) Then Dim ass As Assembly = Assembly.LoadFrom(path) 'any ideas here End If End Sub End Class
hope you get my idea and you are willing to help out