Hi
place a richtextbox and a button on a form and copy paste this code
<<<<<<<<code>>>>>>>>>>
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As _
System.EventArgs) Handles Button1.Click
Dim i As Integer
Dim kleur As Color
For i = 0 To 10
RichTextBox1.SelectionColor = kleur.FromArgb(Rnd() * 255, Rnd()
* 255, _ Rnd() * 255)
RichTextBox1.AppendText(CStr(i) & vbCrLf)
Next
End Sub
<<<<<<<code>>>>>>>>>>
hth
grtz Peter
"shachar" <an*******@discussions.microsoft.com> wrote in message
news:1d****************************@phx.gbl...
hi all.
i'm appending lines to my RichTextBox.
can i append each line in a different color? how?