How to start creating a BHO in C#?

梦想与她 提交于 2019-12-07 15:17:26

问题


I need to create a BHO in C#. Any documentation available other than the typical Microsoft C++ example?

How do I start? Thanks...


回答1:


It's not that difficult really, but you will have to get your hands dirty with COM interop. I just recently did this for a line-of-business application. Basically you gotta implement IObjectWithSite in your add-in and from there you just hook up to the WebBrowser events the same as you would with an embedded WebBrowser control.

Here is an example. http://www.15seconds.com/issue/040331.htm



来源:https://stackoverflow.com/questions/4467805/how-to-start-creating-a-bho-in-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!