I have a class module in which I want to raise an event to signal to the outside world. The class is named clsNode, and all this code is in that class module.
The declaration section contains this:
Code:
Public Event cstmEvntDropPoint(cnode As clsNode) ' If transfer is activated, this will signal the drop point
and code in the class's MouseDown event routine contains this:
Code:
RaiseEvent cstmEvntDropPoint(Me)
However, the RaiseEvent command does nothing. It activates just fine with other parameters, but even when I define a variable named SelfRef and use Set SelfRef = Me in the class's Initialize routine, subsequently calling
Code:
RaiseEvent cstmEvntDropPoint(SelfRef)
also does nothing. Stepping through the line in the debugger treats that line like a NoOp, but with any other parameter, it works normally. Why does this command accept other things, but not a reference to the current instance of the class raising the event?