Could somebody please explain why this doesn't work!
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?
Finite
"If a cat always lands on its feet, and a peice of bread always lands butter side down, if you strap a peice of bread butter side up to the back of a cat, will it hover?"