Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want some text to be rotate at the top of the web page just like some news contents.

I am using VS2003 in 1.1 version?
Posted

1 solution

VB
Private m_intMarqueeCounter As Integer = 1
Private m_bolMarqueeIncrementUp As Boolean = True

Private Sub YourMarqueeTimer_Tick()

   'You can decide what number is best for your app.
   If m_intMarqueeCounter = 10 Then
      m_bolMarqueeIncrementUp = False
   End If

   If m_intMarqueeCounter = 0 Then
      m_bolMarqueeIncrementUp = True
   End If

   Dim intX As Integer
   For intX = 0 to m_intMarqueeCounter
      frmYourForm.Text = " " & "Your Title"
   Next

   If m_bolMarqueeIncrementUp Then
      m_intMarqueeCounter += 1
   Else
      m_intMarqueeCounter -= 1
   End If

End Sub
 
Share this answer
 
v2

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