如何用forecolor写字符串 [英] How to write string with forecolor

查看:77
本文介绍了如何用forecolor写字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,


我的窗口应用程序中的
我需要用color.for示例编写xml标签。例如下面的行



Dear friends,

in my window application i need to write xml tag with color.for example in the below line

sTemp = "<trm>" & sTemp





i想要以不同颜色显示trm。

有人可以建议我怎么做吗?

提前致谢



i want to show trm in different color.
can anybody suggest me how to do?
Thanks in advance

推荐答案

使用RichTextBox。在那里你可以设置字体的颜色。
Use RichTextBox. There you can set the color of the font.


这篇关于如何用forecolor写字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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