How can i create an event for a control that i am making?
For example my control loads a file like web page and i want to add an event "ondocumentcomplete" or "ondocumenterror" , how can i do it?
Printable View
How can i create an event for a control that i am making?
For example my control loads a file like web page and i want to add an event "ondocumentcomplete" or "ondocumenterror" , how can i do it?
VB Code:
Option Explicit Public Event YourEvent() Private Sub Something_happens_and_you_want_to_raise_an_event() RaiseEvent YourEvent End Sub
Thanks Manavo11 for your example!
You're welcome :afrog: