VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Add Colored Text to RichTextbox

Kamilche  (35 Submissions)   String Manipulation   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Adds the text to a textbox, checking for length overflow. First, it checks, and if the textbox exceeds 15,000 characters, it strips out all but the last 2000 characters to make room for the new text. It doesn't break in the middle of lines - it only deletes 'whole lines.' Then it adds the text to the end, using the color you specified (if any), and scrolls to the end of the textbox. I use it all the time, got tired of cutting/pasting out of old projects, thought I'd put it here on VBC.

Rate Add Colored Text to RichTextbox (14(14 Vote))
Add Colored Text to RichTextbox.bas

Add Colored Text to RichTextbox Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters