在Windows窗体显示HTML文本 [英] Display html text in Windows Forms

查看:253
本文介绍了在Windows窗体显示HTML文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些HTML字符串我的应用程序产生的。每个HTML代码段存储为字符串的集合。我需要显示一些这些根据用户查询。什么是通常的方式来显示HTML程式化文本的Windows窗体。

I have a some of html strings that my application generates. Each html 'snippet' is stored as a collection of strings. I need to display some of these according to the user query. What is the usual way to display html stylized texts in Windows Forms.

推荐答案

您可以嵌入IE浏览器在Windows窗体与的 WebBrowserControl 。你也许可以流文本,否则你可能需要写一个文件,并指出控制该文件。

You can embed IE in Windows Forms with the WebBrowserControl. You might be able to stream the text in, otherwise you might have to write to a file and point the control to that file.

这篇关于在Windows窗体显示HTML文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆