I'm quite annoyed at the moment. This worked this morning, I swear, but now it doesn't. What is going on.

In one project, compiled as a DLL I have this code:

class cFormSFX:
Code:
Public Property Set TargetForm(frmNewValue As Object)

    If (TypeOf frmNewValue Is Form) Then
        MsgBox frmNewValue.Name
    End If
End Property

In a second project, compiled as an exe I have this code.

form Form1
Code:
Private mobjTest        As FormSFX.cFormSFX

Private Sub Form_Initialize()
    Set mobjTest = New cFormSFX
    
    Set mobjTest.TargetForm = me
End Sub
The typeof validation in the DLL fails, and I do not understand why. Can anyone help me?