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
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
I am wanting to take the second arg and assemble it into the form name then open the form. I think this will work.

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
Code:
Dim myPSAform As New PSA100.frm123
        myPSAform.Show()
But that does not help passing args so that the dll can decide which form to load.