On my C# code when the compile button is pressed, it displays a Success message in a text box but i want different lines of the text to be different colors. How can I do that? I'm using .NET Framework 4.7.2 The textbox used is a "RichTextBox"
CompileLogTB.Text = CompileLogTB.Text + Environment.NewLine + "[+]Successfully compiled file!" + Environment.NewLine + "[+]Task has been completed." + Environment.NewLine + "[+]You may now check the folder" + Environment.NewLine + "this application is located for the output." + Environment.NewLine + "Comipled In 34ms!";
return;
Try with this: