Pages - Menu

Katrox's Blog | Computer Articles | Knowledge Articles

Saturday, June 23, 2012

MARQUEE TEXT USING VISUAL BASIC 6.0

Marquee text usually found in a website. We can use some of web programming language to build it. But, we also can make it by using Visual Basic 6.0 or sometimes it is called as VB. May be some of you feel confused and wonder, then you get a big question in your brain, what is visual basic? You can find the answer by searching in internet using Google, Yahoo or many more. You will found some articles about visual basic 6.0. Even, you can also download visual basic 6.0 from internet. As we know, there are some  version of visual basic. Like visual basic 6.0, visual basic 2008 and also visual basic 2010 and visual basic.net. Back to the tutorial about marquee text using visual basic 6.0, here are the tutorial :


First, please open the Visual Basic 6.0 program in your computer, then from the New Project window select Standar.EXE


Second, after choosing Standar.EXE there is an empty form. Then we add Timer object in that form. And don't forget to set its interval to 10 or you can define by yourself. The interval setting can be found in Properties window of Timer object. Also we add a text by using Label object we can found it in Toolbars. Make your text by yourself. You can change Label setting from Properties window.




Third, then double click on Timer object and write these codes in code window. The codes as follows:

Private Sub Timer1_Timer()
If(Label1.Left + Label1.Width) <=0 Then
                Label1.Left = Me.Width
                End If
                Label1.Left = Label1.Left – 25
End Sub

And the last, you can run the program by clicking Run button in Visual Basic 6.0 or by pressing F5. You can modify it by yourself. Have a nice try.
 


5 comments:

Richard Arteaga said...

muchas gracias si me funciono

Unknown said...

.hi, am a student university of Calabar, this article is good thanks for sharing 👍

Unknown said...

.hi, am a student university of Calabar, this article is good thanks for sharing 👍

Unknown said...

.hi, am a student university of Calabar, this article is good thanks for sharing 👍

Unknown said...

That`s good