VB Code:
'clsButton
Private WithEvents coLbl As Label
Public Event MouseClick(viID As Integer, viButton As Integer, viShift As Integer, viX As Single, viY As Single)
'.. Various Code ..
Private Sub coLbl_MouseDown(viButton As Integer, viShift As Integer, viX As Single, viY As Single)
If Not bMouseClick Then
RaiseEvent MouseClick(ID, viButton, viShift, viX, viY)
End If
End Sub
which ends up in clsForm:
VB Code:
'clsForm
Public WithEvents foCmdEmp As clsButton
Private WithEvents foForm As Form
Public Event TestEvent()
'.. Various Code ..
Public Sub TEST_IT()
RaiseEvent TestEvent
End Sub
Public Sub foForm_Click()
'Set a separate function to test TEST_IT()
'Call it from this event, it works
Call TEST_IT
End Sub
Public Sub foCmdEmp_MouseClick(viID As Integer, viButton As Integer, viShift As Integer, viX As Single, viY As Single)
Call pSet_clsButtonClick(viID)
Call TEST_IT ' <--- Fires, TEST_IT is called but no event is sent up
End Sub
I've removed tons of code for this snippet, but it should show that I can get one event to fire in another class module, but it seems you can't fire an event up the hierarchy right after an event has been fired? :confused: