Windows フォームは初めてです。私はVS 2008、C#を使用してRichTextBoxを作成しています。RichTextBox に書き込むときに、各行に異なる色を付けたいと考えています。誰かが私にサンプルを指摘できますか. ありがとう
foreach (string file in myfiles)
{
// As I process my files
// richTextBox1.Text += "My processing results";
if(file == "somefileName")
{
// Color above entered line or enter new colored line
}
}