Hi, I have written a simple class below but i'm quite new to the whole object orientated approach. I am having difficulty in making the Handler work for my event...
The sub updateStatus is called elsewhere in my code, which should then in theory raise the event changeStatusText. However, this line executes fine but my handler never seems to come into play.
The class is below and any help would be appreciated. Thanks, Phil.
Public Class ClassWithEvents
Public WithEvents objCWE As ClassWithEvents
Public Event changeStatusText(ByVal strStatus As String)
'raises the change status event
Public Sub updateStatus(ByVal strStatus As String)
'handles the change status
Private Sub objCWE_ChangeStatusText(ByVal strStatus As String) Handles objCWE.changeStatusText
AddUnit.stMessages.Text = strStatus