Is there anyway i can make something like a marquee in Vb?? :afrog:
Printable View
Is there anyway i can make something like a marquee in Vb?? :afrog:
Do you mean scrolling text? If so then you would either put your text in a Label or draw it using GDI+ and use a Timer to change the location over time.
http://www.vbforums.com/showthread.p...ht=scroll+text
what i have done now is simply changing the label setbounds as it goes..Quote:
Originally Posted by jmcilhinney
is it possible to have the text in the label moving like let say from right to left???
This is the code I posted in that thread to move the Label from right to left:What do you suppose you would have to change to make it go left to right? Think first, ask questions later.VB Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Start the Label at the far right of the Panel. Me.Label1.Left = Me.Panel1.Width Me.Timer1.Start() End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick 'Move the Label to the left. Me.Label1.Left -= 10 If Me.Label1.Right <= 0 Then 'Start again. Me.Label1.Left = Me.Panel1.Width End If End Sub
Thankss for your help Jmc, i have Solved my Problems