如果链接不起作用,我想更改 Not working Links 的文本颜色,它的颜色应该是红色。我的链接在文本框中
if (!IsLinkWorking(link))
{
//Here you can show the error. You don't specify how you want to show
TextBox2.Text += string.Format(
"{0}\nNot working\n\n ", link);
// this should be in red which is in textbox2.text
}
else
{
TextBox2.Text += string.Format("{0}\n working\n\n", link);
}