as you look at the code below, I want to chnge the color of each line. why it is not working ? even when using the selstart and sellength it change only to 1 color.
Thank You
Amos
RichTextBox1.SelColor = vbRed
RichTextBox1.Text = RichTextBox1.Text & "aaaaaaaaaaaaaaaaaaaaaaa"
RichTextBox1.SelColor = vbGreen
RichTextBox1.Text = RichTextBox1.Text & "bbbbbbbbbbbbbbbbbbbbbb"
RichTextBox1.SelColor = vbBlue
RichTextBox1.Text = RichTextBox1.Text & "ccccccccccccccccccccccc"
Thank You
Amos
RichTextBox1.SelColor = vbRed
RichTextBox1.Text = RichTextBox1.Text & "aaaaaaaaaaaaaaaaaaaaaaa"
RichTextBox1.SelColor = vbGreen
RichTextBox1.Text = RichTextBox1.Text & "bbbbbbbbbbbbbbbbbbbbbb"
RichTextBox1.SelColor = vbBlue
RichTextBox1.Text = RichTextBox1.Text & "ccccccccccccccccccccccc"