开发者

VB.net Color one part of text -- Listbox

开发者 https://www.devze.com 2023-01-01 23:17 出处:网络
In VB.net is there anyway to make a certain part of the string to have a different color to make it stand out?

In VB.net is there anyway to make a certain part of the string to have a different color to make it stand out?

This doesn't work but if I could something like this

string = ("How".ForeColor(red) & "are".FontColor(green))

Would it be possible to make anything similar to this in a ListBox?

If this is not po开发者_JAVA百科ssible is there a way to have it stand out more?


You would have to override the ListBox's DrawItem method.

Similiar to this: Change the Color of Individual .Net ListBox items

0

精彩评论

暂无评论...
验证码 换一张
取 消