How to catch events on form from class library (.dll)?
How to get events from dll?
Yeah, but I don't know ho开发者_C百科w use addhandler in a function. I'm stuck with that.
Use the AddHandler
statement or declare a Sub
with the Handles
keyword, like you would for any event.
Are you sure your DLL exposes events, though? You'll have to look at the documentation for your DLL. In the worst case, you might need to use a tool like .NET Reflector to examine the DLL and see what events are declared in the code.
精彩评论