Marquee Code In Vb

Welcome. Please Login, Register, Or Activate! 
type your username and password to login
Date: November 24, 2009, 07:33 PM
432047 members and 299016 Topics
Latest Member: Magama
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming  |  Marquee Code In Vb
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Marquee Code In Vb  (Read 633 views)
moore20
Marquee Code In Vb
« on: October 09, 2008, 08:58 PM »

hi everyone,
please can anybody help me with a code to marqee a label leftwards in vb 6
i'll really appreciate it
luckyCO
Re: Marquee Code In Vb
« #1 on: October 10, 2008, 11:37 AM »

I would love you to have posted this on the forum which I called Post your VB6.0 question here. This will enable me to answer it as soon as I enter into the thread. U can also post any other one in a fresh thread and will be appreciated if you post it there for me to answer.

Now I will give you code for Left,Right,down and Button marque

You have four timers and four labels,put then on a form ,choose whichever that serves your purpose.

Private Sub Timer1_Timer()
Call MoveRight(Label1, Me)
End Sub

' the one you asked for
Private Sub Timer2_Timer()
Call MoveLeft(Label2, Me)
End Sub

Private Sub Timer3_Timer()
Call MoveUP(Label3, Me)
End Sub


Private Sub Timer4_Timer()
Call MoveDown(Label4, Me)
End Sub

'Function calls

Public Sub MoveLeft(Obj As Control, frm As Form)
Obj.Move Obj.Left + 30
If Obj.Left > frm.Width Then
    Obj.Left = -1 * (frm.ScaleWidth)
End If
End Sub

Public Sub MoveRight(Obj As Control, frm As Form)
Obj.Move Obj.Left - 30
If (Obj.Left + Obj.Width) < 0 Then
    Obj.Left = frm.Width
End If
End Sub

Public Sub MoveUp(Obj As Control, frm As Form)
Obj.Move Obj.Left, Obj.Top + 30
If Obj.Top > frm.Height Then
    Obj.Top = -1 * (frm.ScaleHeight)
       
End If
End Sub

Public Sub MoveDown(Obj As Control, frm As Form)
Obj.Move Obj.Left, Obj.Top - 30

If (Obj.Top + Obj.Height) < 0 Then
    Obj.Top = frm.Height
End If
End Sub

If you have problem you can call 08036025235
Thanks
aremu2000
Re: Marquee Code In Vb
« #2 on: October 11, 2008, 05:50 AM »

pls i want to install java 6.1 but it is not install on my pc how can i install it
 I Need Some To Teach Me Programming And Web Design  Software Programming Write  About Oracle Database Express Edition  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 


Sections: Autos/Cars (2) Jobs/Vacancies (2) (3) Career Talk Education General(2) Politics Romance Computers Phones Travel
Sports Fashion Health Religion Celebrities TV/Movies (2) Music/Radio (2) Books Webmasters Programming

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa. See also: Nairalist Classified Ads
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.