Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hiiiiii all..


Would any one tell me, how to use Marquee effect in VB.NET. i mean to say how to slide a text in VB.NET as we do Marquee in HTML.

I am doing my project work, so its needed. If anyone knows help me out.........

Regard
Mithil
Posted

Have a look at this article:
Easy to Use Marquee Control for Windows Form with Full Designer Support[^]

It's a marquee control in Winforms as you want, it's just that it's in C#. But that shouldn't be a an issue. Either you can use it directly or convert it into VB.NET. All you want is in it. :thumbsup:
 
Share this answer
 
i can give you the pesudo... u can increase the length of a label by 1 while decrease its left by 1... using a timer this way u can make the effect of a marque.
 
Share this answer
 
i made the code for u

here it is... the label's name is lblmarquee and the timer's name is timer 1... the timer is set at 35... u can change it for the desired speed
------------------------------------------------------------------------

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If (lblmarquee.Left) + (lblmarquee.Width) <= 0 Then
lblmarquee.Left = Me.Width


End If

lblmarquee.Left = (lblmarquee.Left) - 100
End Sub
----------------------------------------------------------------------------
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900