【发布时间】:2023-04-06 10:57:01
【问题描述】:
if (counter == 0)
textBox2.Text += "ERROR: the item in the " + j + "th row is wrong" + Environment.NewLine;
当 j 变量 Red 出现在 TextBox 中时如何打印它?
【问题讨论】:
-
简单回答:使用 RichTextBox msdn.microsoft.com/en-us/library/…
-
如果这是 ASP.NET,您可以使用验证器来显示红色文本