开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜