I need to set events on a class library and catch them in an form.
For example, I run a sub in the DLL file, and I need to “receive” the event that the sub in the class is running.
The DLL file is created by me in Visual Basic, but how do I raise events on it to be catched in the form?
Please provide an example.
Code in the dll
Code in the form
You’ll also need to remove the event handler at some point in the form’s life with