Graphics – Scrolling List

Graphics – Scrolling List

The Scrolling List example shows how to draw formatted text to a bitmap and then scroll that bitmap vertically in a panel, a pixel at a time.

The example creates a scrolling list like movie credits. The example demonstrates:

– Creating a bitmap that is then displayed as required (the preferred graphics technique)
– Drawing formatted text to a bitmap
– Scrolling a bitmap in a panel

To create this example, create a form that has a timer (Timer1) and a Panel (Panel1). Size the panel to any width, but set the height to about 120 so there is enough text to create a proper scrolling effect. Paste this code into the form: