Raising and handling custom events
hi
there's this event-observer model that i intend to incorporate in my design. i want to use several instances of my activex control that are waiting for an event to occur, the event being a timer tick in my case. how do i do it? first i'll have to somehow raise a custom event and it would be attached to the timer tick somehow. ok i can do it. in the timer event i would just say raiseevent tick, for example. the next task i don't have a clue about. i'll have to add an event handler in my activex control which, like resize or any other windows event, would perform certain task. any ideas how to go about it? any books, tutorials on this topic anywhere? thanks.
imran.
Re: Raising and handling custom events
Quote:
Originally Posted by mr_m_imran
hi
there's this event-observer model that i intend to incorporate in my design. i want to use several instances of my activex control that are waiting for an event to occur, the event being a timer tick in my case. how do i do it? first i'll have to somehow raise a custom event and it would be attached to the timer tick somehow. ok i can do it. in the timer event i would just say raiseevent tick, for example. the next task i don't have a clue about.
In the code for the form on which the control sits, use
Code:
Private Sub <the name of the control>_Tick()
'code to handle the tick event for that control here
End Sub