Click here to Skip to main content
15,891,136 members
Articles / Programming Languages / Visual Basic
Article

Scroll Text Vertically

Rate me:
Please Sign up or sign in to vote.
2.50/5 (10 votes)
3 Nov 20051 min read 59.5K   3.5K   22   6
This Control, will scroll text vertically like the About Box in Winamp

Sample Image - face.jpg

Introduction

        Hi to all, this is my first control, and it was created after an unsuccessful search for an ActiveX control capable of scrolling text vertically. This control will mimic (it’s not perfect, but u get the idea) the about box in winamp, it lacks of all the events handling but it works!  For instance display some credits if you like!. <u1:p>

        Use this code freely, if you like it, please try to improve it to get the most out of this control and be sure to send me an email with the new version, thanks. <u1:p>

Ok this is the usage

1) Assign some text using TextScroll1.Text = "Bla bla "  (1 line or multilane), lines are spitted by VbCrLf 
                             or  TextScroll1.SetText = "Bla 1st Line Bla" &  VbCrLf &  "bla 2d Line bla"
2) Enjoy it.<u1:p>

To work!<u1:p>

          This control can easily be transformed to mimic the StarWars introduction (I think we all remember this) the idea will be to modify Sub FixFontSize To have the bottom labels with a bigger font and size, and as the lines goes up the size and font decrease accordingly, this will create a cheap illusion to have all the text in perspective.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionIt works for me Pin
Avinash Phadke11-Sep-12 3:11
Avinash Phadke11-Sep-12 3:11 
GeneralNice! Pin
Disactive29-Aug-12 4:47
Disactive29-Aug-12 4:47 
QuestionAdding Text Pin
jocol6-Aug-08 6:38
jocol6-Aug-08 6:38 
GeneralScrolling Text Pin
sfodom28-Apr-08 11:41
sfodom28-Apr-08 11:41 
GeneralImprovements/Fix Pin
Angelo Cresta4-Nov-05 0:08
professionalAngelo Cresta4-Nov-05 0:08 
AnswerRe: Improvements/Fix Pin
Marco_Frigerio_4-Nov-05 3:56
Marco_Frigerio_4-Nov-05 3:56 
Hi Angelo,

I already fix this issue, although I left the property .SetText assuming that some developers like to set this from the properties.

The fix was to add the call to Scroll after set .Text or SetText at the property Sub, when I call this sub I ensure the vector TextToScroll have been filled out for some reason this error was popping out and I couldn't figure that out why, I tried to use the Try and Catch to overcome this error on the areas that I play with the vector, but still the error showed up

-- modified at 16:28 Friday 4th November, 2005

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.