How do I reference a local resource in generated HTML in WinForms WebBrowser control?

前端 未结 5 666
天涯浪人
天涯浪人 2020-12-18 11:32

I\'m using a winforms webbrowser control to display some content in a windows forms app. I\'m using the DocumentText property to write the generated HTML. That part is wor

5条回答
  •  -上瘾入骨i
    2020-12-18 12:38

    Alternatively, keep your normal style relative links, drop the HTML transforming code and instead embed a C# web server like this in your exe, then point your WebControl at your internal URL, like localhost:8199/myapp/

提交回复
热议问题