I am in need of some help. I have a class that is specific to a customer to enable and disable textboxes on a form. I am the class name is based off string values. I am trying to use System.Activator.CreateIns
tance to call the class and perform the behaviors.
I am getting an error "Could not load file or assembly 'ShowMe' or one of its dependencies. The system cannot find the file specified."
Public gsOwnerClass As Object
Dim lsModuleName As Object = CType("ShowMe", Object)
gsOwnerID = "ASDD"
gsOwnerClass = "cls" & Strings.StrConv(gsOwnerID, VbStrConv.ProperCase) & "1"
Dim assembly As String = lsModuleName.ToString
Dim classname As String = gsOwnerClass.ToString
pc = System.Activator.CreateInstance(assembly, classname).Unwrap 'Error occurs here
Public Class clsAsdd1
MsgBox("You got me", MsgBoxStyle.Critical, "You hit the class")