Try Dim ass As Assembly = Assembly.LoadFile(Application.StartupPath & "\ReflectionLib.dll") Dim t_sam As Type = ass.GetType("ReflectionLib") Dim hh_m As MethodInfo = t_sam.GetMethod("ShowX", BindingFlags.Public Or BindingFlags.Static) hh_m.Invoke(Nothing, New Object() {}) Catch ex As Exception MessageBox.Show(ex.Message + ex.StackTrace + vbLf) End Try
Object reference not set to an instance of object error
hh_m.Invoke(Nothing, New Object() {})
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)