I am trying something new today.
What I am wanting to do is pass some information from my app to a new DLL project I have created.
In the DLL I have 2 test forms (frm123, frm456). What I need to do is send 2 parameters over to the DLL, when the DLL recieves the info it would then determine which form to open.
In the DLL I have in the Main Module ' I will use arg(0) later
I am wanting to take the second arg and assemble it into the form name then open the form. I think this will work.Code:Module PSAModMain Function Main(ByVal Args() As String) As Integer Dim ClientNum As String Dim Version As String ClientNum = Args(0).Trim Version = Args(1).Trim Dim frm As New Form frm.Name = "frm" & Version frm.Show() End Function End Module
But, on the app side on a button click sub I do not know how to reference it.
My DLL is called PSA100.dll
I can load the individual forms e.g
But that does not help passing args so that the dll can decide which form to load.Code:Dim myPSAform As New PSA100.frm123 myPSAform.Show()




Reply With Quote