【发布时间】:2010-06-01 01:22:10
【问题描述】:
在 VB.net 中是否有让字符串的某个部分具有不同的颜色以使其突出?
这行不通,但如果我可以这样的话
string = ("How".ForeColor(red) & "are".FontColor(green))
是否可以在 ListBox 中制作类似的东西?
如果这是不可能的,有没有办法让它更加突出?
【问题讨论】:
标签: .net vb.net text listbox colors
在 VB.net 中是否有让字符串的某个部分具有不同的颜色以使其突出?
这行不通,但如果我可以这样的话
string = ("How".ForeColor(red) & "are".FontColor(green))
是否可以在 ListBox 中制作类似的东西?
如果这是不可能的,有没有办法让它更加突出?
【问题讨论】:
标签: .net vb.net text listbox colors
您必须重写 ListBox 的 DrawItem 方法。
【讨论】: