如何自定义listbox中每条记录的字体(或背景色)显示颜色
我的程序需要实现如下功能:
.
.
.
listlog.AddItem msg
listlog.ListIndex = listlog.ListCount - 1
'judge errrate
If Mid(msg, 7, 1) = 0 Then 'errrate is serious
'display msg with red color
'这儿的代码如何写?
Call savelog
ElseIf Mid(msg, 7, 1) = 1 Then 'errrate is warning
'display msg with yellow color
'这儿的代码如何写?
Call savelog
End If