Scrolling RichTextBox pixel by pixel

Category:
Screen/Graphics
Type:
Snippets
Difficulty:
Intermediate
Author:
Arkadiy Olovyannikov

Version Compatibility: Visual Basic 5

More information:
You can use this code in your splash window to show information or in an about box as a scrolling credit window. To use this code, place RichTextBox(rtb1) on your form (Apperance=0,Borderstyle=0,ScrollBars=2,index=0), PictureBox1 and load any *.rtf file (with any fonts, colors and pictures in it) into RichTextBox (you can do it at run time using LoadFile, as in the example given below).

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: