在标签中显示HTML格式的字符串 [英] Display HTML formatted string in to label
本文介绍了在标签中显示HTML格式的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我用c#winform。
我要显示HTML格式winform标签控件中的文本或字符串也显示图像(来自基本64字符串格式)。
所以我怎么可能?
请帮帮我。
我的尝试:
我尝试了很多自定义标签控件,但不能将任何一个转换基本64字符串格式转换为图像。
Hi all,
I am use c# winform.
I want to display HTML formatted text or string in winform label control also display Image (from base 64 string format).
so how it possible for me?
Please help me.
What I have tried:
I tried many custom label control but can't any one convert base 64 string format to image.
推荐答案
标签不打算显示格式文本。您只能将一种格式应用于标签,该标签将应用于整个字符串。
如果要在Windows窗体表单中显示HTML格式的文本,你最好使用WebBrowser控件而不是标签。
A label is not meant to display formatted text. You can apply only one format to a label, which will be applied to the whole string.
If you want to display HTML-formatted text in a Windows Forms form, you'd better use a WebBrowser control instead of a label.
这篇关于在标签中显示HTML格式的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文