如何显示在WinForm的HTML格式的内容(不包括图片)? [英] How to show html formatted content (without image) in a winform?
本文介绍了如何显示在WinForm的HTML格式的内容(不包括图片)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要显示在我的WinForm应用程序的HTML格式的字符串。我应该使用什么样的控制?
I want to show html formatted string in my winform application. What control should I use?
推荐答案
使用<一个href="http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx"><$c$c>WebBrowser$c$c>控制显示的WinForms应用HTML内容。
Use WebBrowser
control to display html content in WinForms applications.
您可以只指定HTML内容:
You can specify just html content:
Dim html As string = "<span>my html content</span>"
webBrowser.DocumentText = html
或指定路径的HTML内容:
or specify path to the html content:
webBrowserNotes.Url = "my-html-content.html"
这篇关于如何显示在WinForm的HTML格式的内容(不包括图片)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文