Search code examples
c#textscrollsystem.drawing

C# Scroll text using DrawString


I'm quite new to C# so excuse me if this is a stupid question. I would like to scroll some text from the bottom of the screen to the top of the screen line-by-line. What is the easiest way to achieve this?

Cheers,

Pete


Solution

  • Since you're planning on writing directly to the Desktop, I would strongly suggest not doing this.

    A much simpler way is to draw the text onto a transparent form (use the form's TransparencyKey property to achieve this), and then move the Location of the form to achieve the scrolling effect.