Public Sub New(ByVal oldC As Control)
Dim FQTN As String = oldC.GetType.FullName
Dim t As Type = Type.GetType(FQTN)
Dim newC As Object = Activator.CreateInstance(t)
End Sub
FQTN
is returning the correct Type name, but t
is Nothing
. For instance, FQTN = System.Windows.Forms.Panel
.