C # for IE writing bho plugin experience

Source: Internet
Author: User

What is BHO, in fact, everyone has used, have not heard just don't care, to a picture you know what is

is not familiar, is such a thing ~ ~

Let's talk about what I'm going to do. We have a library, the data is very comprehensive, but a department needs in the third party b/s system input certain information, form data is large, it may be the data in my library, in the premise of not changing the third party system, the matching data in my library to the third party system form!

Perhaps the first solution is: Make a browser, WinForm or WebKit, but you have to consider the third-party system if the use of the respective manufacturers of ActiveX what to do ...

Secondly, I write an ActiveX, this is a good way, but not signed, but also to set IE security

Later, others told me that there is a thing called bho, can be directly developed in C #, that is, the use of MSHTML to modify the HTML structure, to the DOM register or remove events, online examples are many, here do not take out, I also download people's use, and then their own needs to make changes!

An example on the Web is to add the Click event to the DOM, because I want to use the Blur event, affected by the Click event, I wrote the Blur in accordance with the click to write, found that it does not work, waste a great effort to find information, how to use these events, Mshtml almost all of the events (click) are routed to the document to process, not directly to the DOM element add event (click), otherwise do not back to any effect! Remember!

Followed by the COM build, the online said the more vague, mshtml everyone also know what, what shdocvw don't know at all

Their full name is like

Finally is installed, run Vistudio tools inside the developer tools, and then into your BHO program debug or Release directory Run REGASM/C "Your class library file name" installed successfully, open IE, enter the URL, see how the effect!

C # for IE writing bho plugin experience

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.