我想在已经包含一些文本的文本框中打印文本,我想知道是否可以只用一行打印自定义颜色的文本:
If receivedData.Contains("close") Then
TextBox1.Text &= "CARD STATUS: "
TextBox1.ForeColor = System.Drawing.Color.Red
TextBox1.Text &= "Card Locked" & vbCrLf
TextBox1.ForeColor = System.Drawing.Color.Black
End If
它不会改变前景......