更改按钮文本的特定字符的前景色 [英] Changing the forecolor of a specific character of button text

查看:111
本文介绍了更改按钮文本的特定字符的前景色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

我想更改按钮文本的特定字符的前景色,以使特定字符以不同的颜色突出显示.我知道这在asp.net中非常容易,但是我不知道如何在VB.Net中做到这一点.

有人请帮我...
该按钮应在文本 Code Project 中以如下方式突出显示,其中字母 C 用红色突出显示.

C ode Project

Dear friends,

I want to change the forecolor of specific character of a button text, such that the specific character gets highlighted with different color. I know this is very easy in asp.net but I don''t know how to do this in VB.Net.

Someone please help me...
The button should be highlighted like this as below in the text Code Project where letter C is highlighted in red color.

Code Project

推荐答案

使用标准按钮控件,您将需要处理绘画 [
Using a standard button control you would need to handle the Paint[^] event to apply the style you would like.


这篇关于更改按钮文本的特定字符的前景色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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