Click here to Skip to main content
13,043,654 members (52,350 online)
Rate this:
Please Sign up or sign in to vote.
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 22-Nov-12 18:30pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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"
   If m_bolMarqueeIncrementUp Then
      m_intMarqueeCounter += 1
      m_intMarqueeCounter -= 1
   End If
End Sub

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 26 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100