vb.net - Multicolor RichTextBox
问题 I would like to make a line of text in my richtextbox multicolor. I have tried various implementations provided on the web and read up on SelectedText and other topics but can't seem to get it to work the way I would like to. Here is what I have so far RichTextBox1.Text = "This is black " RichTextBox1.SelectionFont = New Font("Microsoft Sans Serif", 8.25, FontStyle.Bold) RichTextBox1.SelectionColor = Color.Green RichTextBox1.SelectedText = "[BOLD GREEN]" RichTextBox1.Text = RichTextBox1.Text