I am trying to find a way to instantiate a form by it's name which will be contained in a string variable.
i.e. Instead of doing this:
I want to do something like this:VB Code:
Dim frm As frmDetails frm = New frmDetails
"InstantiateForm" is obviously made up but you get the drift...Something a bit like what the old VB6 CreateObject function used to do.VB Code:
Dim frm As Form Dim strFormName As String strFormName = "frmDetails" frm = InstantiateForm(strFormName)





Reply With Quote