Is there a way that I can raise an event of my own from the class initialise event. Ie My class is named Util, I need to have a Util_initialise event of my own that is raised when the class initialise event is raised.
Sure, although I can't see why you would want to. After all, if an event is always raised by another event, then why can't you just include the code for the raised event in the raising event?
To raise an event, just declare the event in the general declarations section, and then use the RaiseEvent keyword. Also, you have to use the WithEvents keyword when you are declaring your object variable.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.