Display HTML on a winform

后端 未结 3 1173
野性不改
野性不改 2020-12-24 15:06

I\'m developing a win-form application that needs sometime to show a \"pop-up\" form that displays a portion of a web page on internet (HTML). I\'m getting the HTML of the p

相关标签:
3条回答
  • 2020-12-24 15:16

    You can user web browser control.It can inject all html code directly.

    webBrowser1.DocumentText = "<html>hello <script>alert('hi');</script></html>";
    
    0 讨论(0)
  • 2020-12-24 15:19

    Try to use built-in WebBrowser control.

    References at CodeProject:

    For Managed HTML Rendering, see Professional HTML Renderer

    For Dynamic HTML Rendering, see Show Dynamic HTML in WinForm Applications

    0 讨论(0)
  • 2020-12-24 15:40
    webBrowser1.Document.Write(yourHtmlText);
    
    0 讨论(0)
提交回复
热议问题