我想在我的 winform 应用程序中显示 html 格式的字符串。我应该使用什么控件?
最佳答案
使用WebBrowser
在 WinForms 应用程序中显示 html 内容的控件。
您可以只指定 html 内容:
Dim html As string = "<span>my html content</span>"
webBrowser.DocumentText = html
或指定 html 内容的路径:
webBrowserNotes.Url = "my-html-content.html"
关于c# - 如何在 winform 中显示 html 格式的内容(无图像)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7514328/