Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Dyndrilliac on September 27, 2004, 01:07 PM

Title: How do you set the forecolor of a RichTextBox?
Post by: 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.
Title: Re: How do you set the forecolor of a RichTextBox?
Post by: Spht on September 27, 2004, 01:18 PM
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