RaiseEvent won't fire
Posted on 2002-03-13
I am a bit puzzled as to why my RaiseEvent statement is not firing the appropriate event.
I have a class (e.g. clsFireEvent) which only purpose is to fire the event, i.e.
Public Event evLabelClicked(ByVal Index As Integer)
Public Sub gLabelClicked(ByVal Index As Integer)
I have another class which calls the procedure (gLableClicked) above which raises the event.
However, when it goes through the RaiseEvent statement it does not go to the Event created in the form.
In the form I have declared the class with events, e.g.
Private WithEvents LabelSelected As clsFireEvent
And have placed code within this, but the RaiseEvent statement is not firing it.
Any ideas ?