C# Make scrolling text.

Discussion in 'Code Snippets and Tutorials' started by Pankirk, Oct 4, 2008.

  1. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    This is basically useless, but I'm writing a program thats very eye candy and I use this script I wrote (but much less buggy). basically what it does is moves text across the form using supplied increments. So, lets begin.

    Heres the code:
    Basically what it does is position the label1 (or whatever you have that you want to move) over by 1 every 20miliseconds (I think it's miliseconds) and stops, then goes back to the beginning if its about to pass the max increment for the for loop. The other one I wrote is much less buggy, I might share it. So, what do you guys think, I know it's possible to do this with timers and stuff but I like to try and keep it as simple as possible. How would you have gone about making eye candy like this? :tehe: