Len(Text)有啥办法每行显示不一样的字体颜色?
Text6.Text = ("【" & Text1.Text & "】,【" & Text2.Text & "】,【" & Text3.Text & "】,【" & Text4.Text & "】." & Hour(Time) & ":" & Minute(Time) & ":" & Second(Time))Text5.Text = Text5.Text + Text6.Text & vbCrLf
Text5.SelStart = Len(Text5)
command1_Click
text6.ForeColor = &HFF&
command2_Click
text6.ForeColor = &H0&
这么写后text5里面的字还是原色没变化。
如果改成
command1_Click
text5.ForeColor = &HFF&
command2_Click
text5.ForeColor = &H0&
那text5里面已有的所有内容字体颜色会统一变成一个颜色。