• Welcome to Valhalla Legends Archive.
 

How do you set the forecolor of a RichTextBox?

Started by Dyndrilliac, September 27, 2004, 01:07 PM

Previous topic - Next topic

Dyndrilliac

My RTB control, I just noticed had no "Forecolor" property, and I want to make it so the user can type in it and it-not-be black.
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

Spht

Quote from: Dyndrilliac on September 27, 2004, 01:07 PM
My RTB control, I just noticed had no "Forecolor" property, and I want to make it so the user can type in it and it-not-be black.

QuoteWith RichTextBox1
    .SelStart = 0
    .SelLength = Len(.Text)
    .SelColor = vbNotBlack
    .SelStart = .SelLength
End With