To send a string to the web browse control, you may want to go through the steps below:

1. Add a reference to the Microsoft HTML Object Library.

2. When form loads, use AxWebBrowser.Navigate method to navigate to "about:blank". (This way a new HTML Document is created.)

3. Make sure the document is loaded. (The DocumentCompleteEvent shows this.)

4. Get the AxWebBrowser.Document object and cast it to mshtml.IHTMLDocument2.

5. Set IHTMLDocument2.body.innerHTML property to the HTML string.

相关文章:

  • 2022-12-23
  • 2021-08-30
  • 2022-01-24
  • 2021-10-24
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-20
  • 2021-11-17
  • 2022-12-23
  • 2021-08-28
  • 2021-07-22
  • 2022-12-23
相关资源
相似解决方案